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: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Now tests are launched via ./python.exe and work correctly Issue: Multiple tests failing when invoked directly via ./python Lib/test/... #131290

X Description: Now tests are launched via ./python.exe and work correctly Issue: Multiple tests failing when invoked directly via ./python Lib/test/... #131290

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:d593cab1-0345-b68d-c852-b4ba4dbac3f8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD00E:3D4E09:127C15B:192EFD7:6A55C91F
html-safe-noncefff0123738c9d0425d8523fbd94bde09671b6fd63481ca88a030b69e626490be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDBFOjNENEUwOToxMjdDMTVCOjE5MkVGRDc6NkE1NUM5MUYiLCJ2aXNpdG9yX2lkIjoiNTQ2MzMzMTQ0NzQ5NzkzNTEzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9e42a025eb7610234b5b563fce8e52ce300a238cfe7ba0b32306b22c58e00160
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/131371/commits
twitter:imagehttps://opengraph.githubassets.com/a56834e35451330e4a4bf30a13daa8cc483f65348039c547df26deab8a705d64/python/cpython/pull/131371
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a56834e35451330e4a4bf30a13daa8cc483f65348039c547df26deab8a705d64/python/cpython/pull/131371
og:image:altNow tests are launched via ./python.exe and work correctly Issue: Multiple tests failing when invoked directly via ./python Lib/test/... #131290
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMaximGit1
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8f8e1726192df8dce16872ceb503336c12e9ae78
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/131371/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131371%2Fcommits
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%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/131371/commits
Reloadhttps://github.com/python/cpython/pull/131371/commits
Reloadhttps://github.com/python/cpython/pull/131371/commits
Please reload this pagehttps://github.com/python/cpython/pull/131371/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/131371/commits
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
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
Conversationhttps://github.com/python/cpython/pull/131371
Commits22 (22)https://github.com/python/cpython/pull/131371/commits
Checkshttps://github.com/python/cpython/pull/131371/checks
Files changedhttps://github.com/python/cpython/pull/131371/files
gh-131290: ensure that test files can be executed as standalone scriptshttps://github.com/python/cpython/pull/131371/commits#top
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
fixed test_regrtesthttps://github.com/python/cpython/pull/131371/commits/a9c7bc0acdbec39d1749e0dbd1fc2d94903e0df7
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
a9c7bc0https://github.com/python/cpython/pull/131371/commits/a9c7bc0acdbec39d1749e0dbd1fc2d94903e0df7
https://github.com/python/cpython/tree/a9c7bc0acdbec39d1749e0dbd1fc2d94903e0df7
added spec in test.test_pyclbr.pyhttps://github.com/python/cpython/pull/131371/commits/b875bee5d49ac558b5db2cfbb7c90debfdd30256
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
b875beehttps://github.com/python/cpython/pull/131371/commits/b875bee5d49ac558b5db2cfbb7c90debfdd30256
https://github.com/python/cpython/tree/b875bee5d49ac558b5db2cfbb7c90debfdd30256
changed module name when calling test_metaclass.py directlyhttps://github.com/python/cpython/pull/131371/commits/678893fa65f2ad70b4a8a5a950e84bdf0f76db38
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
678893fhttps://github.com/python/cpython/pull/131371/commits/678893fa65f2ad70b4a8a5a950e84bdf0f76db38
https://github.com/python/cpython/tree/678893fa65f2ad70b4a8a5a950e84bdf0f76db38
Merge branch 'main' into fix-for-running-tests-issue-131290https://github.com/python/cpython/pull/131371/commits/467069626241f5109698169d37690245aac27f27
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
4670696https://github.com/python/cpython/pull/131371/commits/467069626241f5109698169d37690245aac27f27
https://github.com/python/cpython/tree/467069626241f5109698169d37690245aac27f27
added Misc/NEWShttps://github.com/python/cpython/pull/131371/commits/3241aebc58d486449b9b458d657a2bca82a77447
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
3241aebhttps://github.com/python/cpython/pull/131371/commits/3241aebc58d486449b9b458d657a2bca82a77447
https://github.com/python/cpython/tree/3241aebc58d486449b9b458d657a2bca82a77447
Merge branch 'main' into fix-for-running-tests-issue-131290https://github.com/python/cpython/pull/131371/commits/5ffd268587ee7bd03590f52686602f5d40bc9e51
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
5ffd268https://github.com/python/cpython/pull/131371/commits/5ffd268587ee7bd03590f52686602f5d40bc9e51
https://github.com/python/cpython/tree/5ffd268587ee7bd03590f52686602f5d40bc9e51
Apply review suggestions for test_regrtesthttps://github.com/python/cpython/pull/131371/commits/d3cdd6b364a4dcdeb3649ac5d1d56dfa2b83f471
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
d3cdd6bhttps://github.com/python/cpython/pull/131371/commits/d3cdd6b364a4dcdeb3649ac5d1d56dfa2b83f471
https://github.com/python/cpython/tree/d3cdd6b364a4dcdeb3649ac5d1d56dfa2b83f471
added comment for test_metaclass.pyhttps://github.com/python/cpython/pull/131371/commits/682613fe03edab2be1362583ecb663c928a75559
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
682613fhttps://github.com/python/cpython/pull/131371/commits/682613fe03edab2be1362583ecb663c928a75559
https://github.com/python/cpython/tree/682613fe03edab2be1362583ecb663c928a75559
refactor(tests): improve structure and naming in test_pyclbr.pyhttps://github.com/python/cpython/pull/131371/commits/22c996df7cef6f713cd82bda813a635c1ca19522
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
22c996dhttps://github.com/python/cpython/pull/131371/commits/22c996df7cef6f713cd82bda813a635c1ca19522
https://github.com/python/cpython/tree/22c996df7cef6f713cd82bda813a635c1ca19522
created news filehttps://github.com/python/cpython/pull/131371/commits/6744e914a56c4e98e063cc0d6e92a6a043cf5d16
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
6744e91https://github.com/python/cpython/pull/131371/commits/6744e914a56c4e98e063cc0d6e92a6a043cf5d16
https://github.com/python/cpython/tree/6744e914a56c4e98e063cc0d6e92a6a043cf5d16
Update Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rsthttps://github.com/python/cpython/pull/131371/commits/25094788197d0458944af42142e081d016cc5be2
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
picnixzhttps://github.com/python/cpython/commits?author=picnixz
2509478https://github.com/python/cpython/pull/131371/commits/25094788197d0458944af42142e081d016cc5be2
https://github.com/python/cpython/tree/25094788197d0458944af42142e081d016cc5be2
Removed new entry file NEWShttps://github.com/python/cpython/pull/131371/commits/fd29fd15d87a63674a8c8f5384fe0ab3fd11d0a8
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
fd29fd1https://github.com/python/cpython/pull/131371/commits/fd29fd15d87a63674a8c8f5384fe0ab3fd11d0a8
https://github.com/python/cpython/tree/fd29fd15d87a63674a8c8f5384fe0ab3fd11d0a8
Merge remote-tracking branch 'origin/fix-for-running-tests-issue-131290' into fix-for-running-tests-issue-131290https://github.com/python/cpython/pull/131371/commits/a6868a26c4ae82bd77d6422cd832f3234f2f106c
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
a6868a2https://github.com/python/cpython/pull/131371/commits/a6868a26c4ae82bd77d6422cd832f3234f2f106c
https://github.com/python/cpython/tree/a6868a26c4ae82bd77d6422cd832f3234f2f106c
local import removed in test_pyclbr.pyhttps://github.com/python/cpython/pull/131371/commits/bef8cc5c2e108112627210b2cc61c6a06cb025c4
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
bef8cc5https://github.com/python/cpython/pull/131371/commits/bef8cc5c2e108112627210b2cc61c6a06cb025c4
https://github.com/python/cpython/tree/bef8cc5c2e108112627210b2cc61c6a06cb025c4
Created contextmanager for temporarily setting __spec__ on __main__ modulehttps://github.com/python/cpython/pull/131371/commits/584e07b91463d89a2a76a8cbe571a151e837466f
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
584e07bhttps://github.com/python/cpython/pull/131371/commits/584e07b91463d89a2a76a8cbe571a151e837466f
https://github.com/python/cpython/tree/584e07b91463d89a2a76a8cbe571a151e837466f
imports order changedhttps://github.com/python/cpython/pull/131371/commits/9ec71f2feae3ba7b2025d0ae6bd44f08ddfd6046
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
9ec71f2https://github.com/python/cpython/pull/131371/commits/9ec71f2feae3ba7b2025d0ae6bd44f08ddfd6046
https://github.com/python/cpython/tree/9ec71f2feae3ba7b2025d0ae6bd44f08ddfd6046
refactored contextmanagerhttps://github.com/python/cpython/pull/131371/commits/2134259b8ae7f27880e319102208dfe49b71d575
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
2134259https://github.com/python/cpython/pull/131371/commits/2134259b8ae7f27880e319102208dfe49b71d575
https://github.com/python/cpython/tree/2134259b8ae7f27880e319102208dfe49b71d575
removed test_pdb_modulehttps://github.com/python/cpython/pull/131371/commits/cd3f0bb1494cb9b96316e7873608146255e1b6e9
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
cd3f0bbhttps://github.com/python/cpython/pull/131371/commits/cd3f0bb1494cb9b96316e7873608146255e1b6e9
https://github.com/python/cpython/tree/cd3f0bb1494cb9b96316e7873608146255e1b6e9
changed the order of checks in the test_others functionhttps://github.com/python/cpython/pull/131371/commits/19e1a3ae3c6fbe5a26680cc94eabecb755132543
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
19e1a3ahttps://github.com/python/cpython/pull/131371/commits/19e1a3ae3c6fbe5a26680cc94eabecb755132543
https://github.com/python/cpython/tree/19e1a3ae3c6fbe5a26680cc94eabecb755132543
added comment and ignoreshttps://github.com/python/cpython/pull/131371/commits/d12e5c64261dadc84452893b7586d626319aaa32
https://github.com/MaximGit1
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
d12e5c6https://github.com/python/cpython/pull/131371/commits/d12e5c64261dadc84452893b7586d626319aaa32
https://github.com/python/cpython/tree/d12e5c64261dadc84452893b7586d626319aaa32
Update Lib/test/test_pyclbr.pyhttps://github.com/python/cpython/pull/131371/commits/9e28fa4da9e461a045575f46733d5e69a3244ae4
MaximGit1https://github.com/python/cpython/commits?author=MaximGit1
picnixzhttps://github.com/python/cpython/commits?author=picnixz
9e28fa4https://github.com/python/cpython/pull/131371/commits/9e28fa4da9e461a045575f46733d5e69a3244ae4
https://github.com/python/cpython/tree/9e28fa4da9e461a045575f46733d5e69a3244ae4
Merge branch 'main' into fix-for-running-tests-issue-131290https://github.com/python/cpython/pull/131371/commits/ca81976dbc00cf1d099e5671bdc3400915c4f43f
https://github.com/picnixz
picnixzhttps://github.com/python/cpython/commits?author=picnixz
ca81976https://github.com/python/cpython/pull/131371/commits/ca81976dbc00cf1d099e5671bdc3400915c4f43f
https://github.com/python/cpython/tree/ca81976dbc00cf1d099e5671bdc3400915c4f43f
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.