René's URL Explorer Experiment


Title: gh-131290: ensure that test files can be executed as standalone scripts by MaximGit1 · Pull Request #131371 · python/cpython · GitHub

Open Graph Title: gh-131290: ensure that test files can be executed as standalone scripts by MaximGit1 · Pull Request #131371 · python/cpython

X Title: gh-131290: ensure that test files can be executed as standalone scripts by MaximGit1 · Pull Request #131371 · python/cpython

Description: Now tests are launched via ./python.exe and work correctly Issue: gh-131290

Open Graph Description: Now tests are launched via ./python.exe and work correctly Issue: gh-131290

X Description: Now tests are launched via ./python.exe and work correctly Issue: gh-131290

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7c609860-fe9d-01c2-0eef-e5962903bfa8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5F0:388D53:AA3499:F9A568:6A56035B
html-safe-nonce0a245225b0b3d7e016dcc249301cc78e573d2e5e4415705a7bf8761a1a018803
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUYwOjM4OEQ1MzpBQTM0OTk6RjlBNTY4OjZBNTYwMzVCIiwidmlzaXRvcl9pZCI6Ijc1OTQ5MzY2NzQ0MTkwODIwNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd20f2ea2e0c2c8fe1253d241ba88bd13c8095e35d96eb8394d95ebe6b821ae4b
hovercard-subject-tagpull_request:2398468683
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/131371/files
twitter:imagehttps://avatars.githubusercontent.com/u/130899353?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/130899353?s=400&v=4
og:image:altNow tests are launched via ./python.exe and work correctly Issue: gh-131290
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a
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
releaseed27e29ef37c0e8f612ea3fed8118b955b8314e2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/131371/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131371%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%2F131371%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/131371/files
Reloadhttps://github.com/python/cpython/pull/131371/files
Reloadhttps://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
MaximGit1:fix-for-running-tests-issue-131290https://github.com/MaximGit1/cpython/tree/fix-for-running-tests-issue-131290
Conversation 40 https://github.com/python/cpython/pull/131371
Commits 22 https://github.com/python/cpython/pull/131371/commits
Checks 0 https://github.com/python/cpython/pull/131371/checks
Files changed https://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
gh-131290: ensure that test files can be executed as standalone scripts https://github.com/python/cpython/pull/131371/files#top
Show all changes 22 commits https://github.com/python/cpython/pull/131371/files
a9c7bc0 fixed test_regrtest MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/a9c7bc0acdbec39d1749e0dbd1fc2d94903e0df7
b875bee added spec in test.test_pyclbr.py MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/b875bee5d49ac558b5db2cfbb7c90debfdd30256
678893f changed module name when calling test_metaclass.py directly MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/678893fa65f2ad70b4a8a5a950e84bdf0f76db38
4670696 Merge branch 'main' into fix-for-running-tests-issue-131290 MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/467069626241f5109698169d37690245aac27f27
3241aeb added Misc/NEWS MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/3241aebc58d486449b9b458d657a2bca82a77447
5ffd268 Merge branch 'main' into fix-for-running-tests-issue-131290 MaximGit1 Mar 17, 2025 https://github.com/python/cpython/pull/131371/commits/5ffd268587ee7bd03590f52686602f5d40bc9e51
d3cdd6b Apply review suggestions for test_regrtest MaximGit1 Mar 19, 2025 https://github.com/python/cpython/pull/131371/commits/d3cdd6b364a4dcdeb3649ac5d1d56dfa2b83f471
682613f added comment for test_metaclass.py MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/682613fe03edab2be1362583ecb663c928a75559
22c996d refactor(tests): improve structure and naming in test_pyclbr.py MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/22c996df7cef6f713cd82bda813a635c1ca19522
6744e91 created news file MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/6744e914a56c4e98e063cc0d6e92a6a043cf5d16
2509478 Update Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyC… MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/25094788197d0458944af42142e081d016cc5be2
fd29fd1 Removed new entry file NEWS MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/fd29fd15d87a63674a8c8f5384fe0ab3fd11d0a8
a6868a2 Merge remote-tracking branch 'origin/fix-for-running-tests-issue-1312… MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/a6868a26c4ae82bd77d6422cd832f3234f2f106c
bef8cc5 local import removed in test_pyclbr.py MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/bef8cc5c2e108112627210b2cc61c6a06cb025c4
584e07b Created contextmanager for temporarily setting __spec__ on __main__ m… MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/584e07b91463d89a2a76a8cbe571a151e837466f
9ec71f2 imports order changed MaximGit1 Apr 6, 2025 https://github.com/python/cpython/pull/131371/commits/9ec71f2feae3ba7b2025d0ae6bd44f08ddfd6046
2134259 refactored contextmanager MaximGit1 Apr 7, 2025 https://github.com/python/cpython/pull/131371/commits/2134259b8ae7f27880e319102208dfe49b71d575
cd3f0bb removed test_pdb_module MaximGit1 Apr 7, 2025 https://github.com/python/cpython/pull/131371/commits/cd3f0bb1494cb9b96316e7873608146255e1b6e9
19e1a3a changed the order of checks in the test_others function MaximGit1 Apr 7, 2025 https://github.com/python/cpython/pull/131371/commits/19e1a3ae3c6fbe5a26680cc94eabecb755132543
d12e5c6 added comment and ignores MaximGit1 Apr 7, 2025 https://github.com/python/cpython/pull/131371/commits/d12e5c64261dadc84452893b7586d626319aaa32
9e28fa4 Update Lib/test/test_pyclbr.py MaximGit1 Apr 7, 2025 https://github.com/python/cpython/pull/131371/commits/9e28fa4da9e461a045575f46733d5e69a3244ae4
ca81976 Merge branch 'main' into fix-for-running-tests-issue-131290 picnixz Apr 12, 2025 https://github.com/python/cpython/pull/131371/commits/ca81976dbc00cf1d099e5671bdc3400915c4f43f
Clear filters https://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
test_metaclass.py https://github.com/python/cpython/pull/131371/files#diff-8dc13f42c6cf3fca078110fdff2b5b03625c8a6a8f2d8795dd5fa684c28b3d0e
test_pyclbr.py https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
test_regrtest.py https://github.com/python/cpython/pull/131371/files#diff-0efcd6408facaca9938a255b25aeac062326b4f7185533c67426fc3057b53893
2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst https://github.com/python/cpython/pull/131371/files#diff-53daa3505868cee252274527a0deacdedf1b661590320320aa83ce573bfb535a
Lib/test/test_metaclass.pyhttps://github.com/python/cpython/pull/131371/files#diff-8dc13f42c6cf3fca078110fdff2b5b03625c8a6a8f2d8795dd5fa684c28b3d0e
View file https://github.com/MaximGit1/cpython/blob/ca81976dbc00cf1d099e5671bdc3400915c4f43f/Lib/test/test_metaclass.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/131371/{{ revealButtonHref }}
https://github.com/python/cpython/pull/131371/files#diff-8dc13f42c6cf3fca078110fdff2b5b03625c8a6a8f2d8795dd5fa684c28b3d0e
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Lib/test/test_pyclbr.pyhttps://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
View file https://github.com/MaximGit1/cpython/blob/ca81976dbc00cf1d099e5671bdc3400915c4f43f/Lib/test/test_pyclbr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/131371/{{ revealButtonHref }}
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
Please reload this pagehttps://github.com/python/cpython/pull/131371/files
https://github.com/python/cpython/pull/131371/files#diff-3f52a567047da1064ed82eb2495a6d10c55e7945dc8a35f1e43044aab3a2268b
Lib/test/test_regrtest.pyhttps://github.com/python/cpython/pull/131371/files#diff-0efcd6408facaca9938a255b25aeac062326b4f7185533c67426fc3057b53893
View file https://github.com/MaximGit1/cpython/blob/ca81976dbc00cf1d099e5671bdc3400915c4f43f/Lib/test/test_regrtest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/131371/{{ revealButtonHref }}
https://github.com/python/cpython/pull/131371/files#diff-0efcd6408facaca9938a255b25aeac062326b4f7185533c67426fc3057b53893
Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rsthttps://github.com/python/cpython/pull/131371/files#diff-53daa3505868cee252274527a0deacdedf1b661590320320aa83ce573bfb535a
View file https://github.com/MaximGit1/cpython/blob/ca81976dbc00cf1d099e5671bdc3400915c4f43f/Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/131371/{{ revealButtonHref }}
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.