René's URL Explorer Experiment


Title: gh-75117: IDLE - add script for running coverage on tests by taleinat · Pull Request #22694 · python/cpython · GitHub

Open Graph Title: gh-75117: IDLE - add script for running coverage on tests by taleinat · Pull Request #22694 · python/cpython

X Title: gh-75117: IDLE - add script for running coverage on tests by taleinat · Pull Request #22694 · python/cpython

Description: This adds a cross-platform script for generating coverage info for any single IDLE module or for all of IDLE. The script uses a dedicated venv in Lib/idlelib/test_idle/coverage_venv/, creating it if not found. The coverage package is installed into this venv. The script also writes a temporary .coveragerc file to ignore irrelevant code. If an existing .coveragerc exists, it is temporarily overwritten. This is heavily based on @terryjreedy's instructions in Lib/idlelib/test_idle/README, adapted to be cross-platform and hopefully robust in terms of where it is run from and where it leaves files lying around. This has currently only been tested on Ubuntu 20.04, and should be tested on macOS and Windows. Issue: gh-75117

Open Graph Description: This adds a cross-platform script for generating coverage info for any single IDLE module or for all of IDLE. The script uses a dedicated venv in Lib/idlelib/test_idle/coverage_venv/, creating it i...

X Description: This adds a cross-platform script for generating coverage info for any single IDLE module or for all of IDLE. The script uses a dedicated venv in Lib/idlelib/test_idle/coverage_venv/, creating it i...

Opengraph URL: https://github.com/python/cpython/pull/22694

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:07ab79f1-a5bf-b5b8-1b96-dcbde4d83c1e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE70:35FAA9:1B39CB:246E2E:6A518633
html-safe-noncebe4ecb661f8262ef8d7cf328ef4c91ce97ade4e470c35d8752327b736cd2b963
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTcwOjM1RkFBOToxQjM5Q0I6MjQ2RTJFOjZBNTE4NjMzIiwidmlzaXRvcl9pZCI6Ijk1NjQ4MzA1MTAyOTg5MDYxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd05ffe99d08d85b0c2db0e10e7feb4b10a1759d0c830c4f8d4ae2579028c702c
hovercard-subject-tagpull_request:503408968
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/22694/files
twitter:imagehttps://avatars.githubusercontent.com/u/532281?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/532281?s=400&v=4
og:image:altThis adds a cross-platform script for generating coverage info for any single IDLE module or for all of IDLE. The script uses a dedicated venv in Lib/idlelib/test_idle/coverage_venv/, creating it i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecb77a7b8b06cd86c243be33fd8e7922d70a9d243
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/22694/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F22694%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F22694%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/22694/files
Reloadhttps://github.com/python/cpython/pull/22694/files
Reloadhttps://github.com/python/cpython/pull/22694/files
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
taleinathttps://github.com/taleinat
python:mainhttps://github.com/python/cpython/tree/main
taleinat:bpo-30934/idle-test-coverage-scripthttps://github.com/taleinat/cpython/tree/bpo-30934/idle-test-coverage-script
Conversation 42 https://github.com/python/cpython/pull/22694
Commits 14 https://github.com/python/cpython/pull/22694/commits
Checks 0 https://github.com/python/cpython/pull/22694/checks
Files changed https://github.com/python/cpython/pull/22694/files
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
gh-75117: IDLE - add script for running coverage on tests https://github.com/python/cpython/pull/22694/files#top
Show all changes 14 commits https://github.com/python/cpython/pull/22694/files
14ef1b1 bpo-30934: add script for running coverage on IDLE modules' tests taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/14ef1b1b7df1a1bdab6d5ce5af7a9cb200a0ec66
50c9515 update README and add support for running all tests taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/50c95159b49513e782933ab046e092914af15421
7d75fb9 refactoring taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/7d75fb90c9b6583545d7e5793bf851e010cbbdbe
9d6f38a avoid using sys.executable taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/9d6f38ad0860f9d0a1130cd803b16ec16f314793
f3c644b call ensure_venv only after parsing cmdline args taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/f3c644b3fab01fab3874edf30ad2a1a1e09bcb46
b137f35 add option to avoid generating and opening an HTML report taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/b137f35649f831c9ddc484ceaedea4da9bce43cf
1bd4a55 use webbrowser.open() to open HTML reports for viewing taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/1bd4a5564448133d9e24a7a769b5b2dde6c260ba
fbb51ae add a shebang line and make the script executable taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/fbb51ae38833a86aa1133acb1d83cfa7ee05c4e1
8110f99 add check for Python version >=3 taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/8110f99362f8cfe7c88604668c8f0c8c5fabd08a
b70b932 minor tweaks to .gitignore and README taleinat Oct 14, 2020 https://github.com/python/cpython/pull/22694/commits/b70b93204fd9cff616ebb39e9c183c2794107a49
7fe2ce8 Merge branch 'main' into bpo-30934/idle-test-coverage-script erlend-aasland Aug 3, 2022 https://github.com/python/cpython/pull/22694/commits/7fe2ce809bd33fa7b45c8cdc97be736176f8a867
2ecafbe Mention that out-of-tree builds are not supported erlend-aasland Aug 3, 2022 https://github.com/python/cpython/pull/22694/commits/2ecafbec841bc9d171ec440a8b724e411f9c0fc8
41e9751 Remove auto-opening of coverage report erlend-aasland Aug 3, 2022 https://github.com/python/cpython/pull/22694/commits/41e9751d8dfe9de1b18056e749c6689b520e7494
ce748cc Inline it erlend-aasland Aug 3, 2022 https://github.com/python/cpython/pull/22694/commits/ce748ccab2872331208b72a9f6a2cb1c116f18a1
Clear filters https://github.com/python/cpython/pull/22694/files
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
.gitignore https://github.com/python/cpython/pull/22694/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
README.txt https://github.com/python/cpython/pull/22694/files#diff-bd76da1189319b8faa78356c13ff52da2ceb59051aa160068d4c2a5569e6e5b6
run_coverage.py https://github.com/python/cpython/pull/22694/files#diff-4ea4f6d96469581b6988006a9e62bc6d2c39aa946921f4fc37c2a44640589a41
.gitignorehttps://github.com/python/cpython/pull/22694/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/python/cpython/blob/ce748ccab2872331208b72a9f6a2cb1c116f18a1/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/22694/{{ revealButtonHref }}
https://github.com/python/cpython/pull/22694/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/python/cpython/pull/22694/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/idlelib/idle_test/README.txthttps://github.com/python/cpython/pull/22694/files#diff-bd76da1189319b8faa78356c13ff52da2ceb59051aa160068d4c2a5569e6e5b6
View file https://github.com/python/cpython/blob/ce748ccab2872331208b72a9f6a2cb1c116f18a1/Lib/idlelib/idle_test/README.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/22694/{{ revealButtonHref }}
https://github.com/python/cpython/pull/22694/files#diff-bd76da1189319b8faa78356c13ff52da2ceb59051aa160068d4c2a5569e6e5b6
terryjreedyhttps://github.com/terryjreedy
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937097275
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
terryjreedyhttps://github.com/terryjreedy
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937056734
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
terryjreedyhttps://github.com/terryjreedy
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937066230
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
terryjreedyhttps://github.com/terryjreedy
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937068197
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
erlend-aaslandhttps://github.com/erlend-aasland
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937124820
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/idlelib/idle_test/run_coverage.pyhttps://github.com/python/cpython/pull/22694/files#diff-4ea4f6d96469581b6988006a9e62bc6d2c39aa946921f4fc37c2a44640589a41
View file https://github.com/python/cpython/blob/ce748ccab2872331208b72a9f6a2cb1c116f18a1/Lib/idlelib/idle_test/run_coverage.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/22694/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
terryjreedyhttps://github.com/terryjreedy
Aug 3, 2022https://github.com/python/cpython/pull/22694/files#r937085953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22694/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.