Skip to content

[3.14] gh-144601: Use _testmultiphase instead of _testsinglephase in test_importlib#144769

Merged
encukou merged 1 commit intopython:3.14from
ZeroIntensity:allow-subinterp-importlib-utils
Feb 16, 2026
Merged

[3.14] gh-144601: Use _testmultiphase instead of _testsinglephase in test_importlib#144769
encukou merged 1 commit intopython:3.14from
ZeroIntensity:allow-subinterp-importlib-utils

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Feb 12, 2026

test_importlib.util is useful for subinterpreter tests, but they can't use it due to the import of _testsinglephase (which, you guessed it, is a single-phase extension). This problem is currently blocking the backport of GH-144602 (GH-144633).

On the main branch, this change was already made as part of GH-141785. As far as I can tell, nothing else from that PR needs to be backported to make this change.

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @encukou for commit 8a3b5da 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F144769%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 13, 2026
@encukou encukou merged commit d148662 into python:3.14 Feb 16, 2026
126 checks passed
@miss-islington-app
Copy link

Thanks @ZeroIntensity for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 16, 2026
…phase` in `test_importlib` (pythonGH-144769)

(cherry picked from commit d1486623263adea6a5138453bacad36a50c14e95)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 16, 2026

GH-144877 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Feb 16, 2026
ZeroIntensity added a commit that referenced this pull request Feb 16, 2026
… in `test_importlib` (GH-144769) (GH-144877)

[3.14] gh-144601: Use `_testmultiphase` instead of `_testsinglephase` in `test_importlib` (GH-144769)
(cherry picked from commit d148662)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@ZeroIntensity ZeroIntensity deleted the allow-subinterp-importlib-utils branch February 16, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants