René's URL Explorer Experiment


Title: `test_pyinit_function_raises_exception` doesn't work without `_testsinglephase` · Issue #156676 · python/cpython · GitHub

Open Graph Title: `test_pyinit_function_raises_exception` doesn't work without `_testsinglephase` · Issue #156676 · python/cpython

X Title: `test_pyinit_function_raises_exception` doesn't work without `_testsinglephase` · Issue #156676 · python/cpython

Description: Bug report Bug description: #Lib/test/test_import/__init__.py, it needs to be decorated with: @unittest.skipIf(_testsinglephase is None, "test requires _testsinglephase module") # and the import needs to be removed #Throws an error : ```...

Open Graph Description: Bug report Bug description: #Lib/test/test_import/__init__.py, it needs to be decorated with: @unittest.skipIf(_testsinglephase is None, "test requires _testsinglephase module") # and the import ne...

X Description: Bug report Bug description: #Lib/test/test_import/__init__.py, it needs to be decorated with: @unittest.skipIf(_testsinglephase is None, "test requires _testsinglephase module") # and the...

Opengraph URL: https://github.com/python/cpython/issues/156676

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_pyinit_function_raises_exception` doesn't work without `_testsinglephase`","articleBody":"# Bug report\n\n### Bug description:\n\n```python\n#Lib/test/test_import/__init__.py, it needs to be decorated with: \n\n@unittest.skipIf(_testsinglephase is None, \"test requires _testsinglephase module\")\n# and the import needs to be removed \n\n#Throws an error : \n```Lib/test/test_import/__init__.py lines 2547 to 2551\n@requires_subinterpreters\ndef test_pyinit_function_raises_exception(self):\n    # gh-144601: PyInit functions that raised exceptions would cause a\n    # crash when imported from a subinterpreter.\n    import _testsinglephase```\n```\n\n### CPython versions tested on:\n\n\n3.13\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156684\n* gh-156686\n* gh-156687\n* gh-156688\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/saioffl","@type":"Person","name":"saioffl"},"datePublished":"2026-08-30T17:20:01Z","url":"https://github.com/python/cpython/issues/156676"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d4c1455b-7f5b-63ca-8116-861c064cb17b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA5D4:9E1B2:2FE354C:3F5D6D2:6B0029B0
html-safe-nonceaa4192dfdb21df9d36bb2561c2c61d6738ceadde214a4821c4a59d850be74bf2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUQ0OjlFMUIyOjJGRTM1NEM6M0Y1RDZEMjo2QjAwMjlCMCIsInZpc2l0b3JfaWQiOiI2MTE0NzQ3MzUwNTg3MDI1ODQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbff07e8db06eec5acb89178584e163515fb8fc0c118dca60aeeb137b9f3f79aa
hovercard-subject-tagissue:5293382312
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/156676/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f2e5a926470a0cf2e9be981fe5bf4e764ecab019f113a431a08bd1f5350c1f26/python/cpython/issues/156676
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f2e5a926470a0cf2e9be981fe5bf4e764ecab019f113a431a08bd1f5350c1f26/python/cpython/issues/156676
og:image:altBug report Bug description: #Lib/test/test_import/__init__.py, it needs to be decorated with: @unittest.skipIf(_testsinglephase is None, "test requires _testsinglephase module") # and the import ne...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesaioffl
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/156676#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F156676
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F156676
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/156676
Reloadhttps://github.com/python/cpython/issues/156676
Reloadhttps://github.com/python/cpython/issues/156676
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/156676
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/156676
test_pyinit_function_raises_exception doesn't work without _testsinglephasehttps://github.com/python/cpython/issues/156676#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/saioffl
saiofflhttps://github.com/saioffl
on Aug 30, 2026https://github.com/python/cpython/issues/156676#issue-5293382312
gh-156676: Fix test for non-CPython implementations #156684https://github.com/python/cpython/pull/156684
[3.15] gh-156676: Skip test_pyinit_function_raises_exception for other implementations (GH-156684) #156686https://github.com/python/cpython/pull/156686
[3.14] gh-156676: Skip test_pyinit_function_raises_exception for other implementations (GH-156684) #156687https://github.com/python/cpython/pull/156687
[3.13] gh-156676: Skip test_pyinit_function_raises_exception for other implementations (GH-156684) #156688https://github.com/python/cpython/pull/156688
saiofflhttps://github.com/saioffl
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30242009647
https://github.com/saioffl
saiofflhttps://github.com/saioffl
on Aug 30, 2026https://github.com/python/cpython/issues/156676#issuecomment-5470161746
gh-144601https://github.com/python/cpython/issues/144601
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
on Aug 30, 2026https://github.com/python/cpython/issues/156676#issuecomment-5470975593
StanFromIrelandhttps://github.com/StanFromIreland
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30245523433
https://github.com/saioffl
saiofflhttps://github.com/saioffl
on Aug 30, 2026https://github.com/python/cpython/issues/156676#issuecomment-5471089229
ZeroIntensityhttps://github.com/ZeroIntensity
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30246240491
ZeroIntensityhttps://github.com/ZeroIntensity
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30247489712
gh-156676: Skip `test_pyinit_function_raises_exception` for other imp…https://github.com/python/cpython/commit/03503dccd0aa6d8895614e80ae9c78c03c813d45
gh-156676https://github.com/python/cpython/issues/156676
03503dchttps://github.com/python/cpython/commit/03503dccd0aa6d8895614e80ae9c78c03c813d45
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Aug 30, 2026https://github.com/python/cpython/issues/156676#issuecomment-5471471125
ZeroIntensityhttps://github.com/ZeroIntensity
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30247620677
ZeroIntensityhttps://github.com/ZeroIntensity
on Aug 30, 2026https://github.com/python/cpython/issues/156676#event-30247962738
[3.13] gh-156676: Skip `test_pyinit_function_raises_exception` for ot…https://github.com/python/cpython/commit/58a7ff9c689615ab931e9a6152564def75c03801
gh-156676https://github.com/python/cpython/issues/156676
58a7ff9https://github.com/python/cpython/commit/58a7ff9c689615ab931e9a6152564def75c03801
[3.14] gh-156676: Skip `test_pyinit_function_raises_exception` for ot…https://github.com/python/cpython/commit/686b543e1ea13f0161dc46da59770be283c3b54c
gh-156676https://github.com/python/cpython/issues/156676
686b543https://github.com/python/cpython/commit/686b543e1ea13f0161dc46da59770be283c3b54c
hugovkhttps://github.com/hugovk
on Aug 31, 2026https://github.com/python/cpython/issues/156676#event-30260862739
[3.15] gh-156676: Skip `test_pyinit_function_raises_exception` for ot…https://github.com/python/cpython/commit/ad2e2c0617e4b08ecca940634378a43bdc45fdf6
gh-156676https://github.com/python/cpython/issues/156676
ad2e2c0https://github.com/python/cpython/commit/ad2e2c0617e4b08ecca940634378a43bdc45fdf6
clin1234https://github.com/clin1234
on Sep 12, 2026https://github.com/python/cpython/issues/156676#event-31023913479
pythongh-156676: Skip `test_pyinit_function_raises_exception` for oth…https://github.com/clin1234/cpython/commit/0033121f973612d32d60ab8070b53b8425657bc2
pythongh-156676https://github.com/python/cpython/issues/156676
0033121https://github.com/clin1234/cpython/commit/0033121f973612d32d60ab8070b53b8425657bc2
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/156676
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/156676
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.