You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some tests fail when __pycache__ prefix is set #151626
Hey there, thanks for the detailed report and the reproduction command. Verified locally on macOS ARM64 (Python 3.16.0a0) with PYTHONPYCACHEPREFIX set to a temp directory.
The fix neutralizes sys.pycache_prefix (and strips PYTHONPYCACHEPREFIX from subprocess environments) in all five test files. Verified locally on macOS ARM64 with PYTHONPYCACHEPREFIX set; all the tests you listed now pass, including the three test_inspect.TestModuleCLI cases and the full PEP3147Tests suite.
Activity
[-]Some tests fail when \_\_pycache\_\_ prefix is set[/-][+]Some tests fail when __pycache__ prefix is set[/+]zangjiucheng commentedon Jun 22, 2026
Hey there, thanks for the detailed report and the reproduction command. Verified locally on macOS ARM64 (Python 3.16.0a0) with
PYTHONPYCACHEPREFIXset to a temp directory.The fix neutralizes
sys.pycache_prefix(and stripsPYTHONPYCACHEPREFIXfrom subprocess environments) in all five test files. Verified locally on macOS ARM64 withPYTHONPYCACHEPREFIXset; all the tests you listed now pass, including the threetest_inspect.TestModuleCLIcases and the full PEP3147Tests suite.I will resolve and attach the PR asap.
fix(pythongh-151626): handle frozen os.path on Windows in test_aliase…
gh-151626: Fix tests that fail when PYTHONPYCACHEPREFIX is set (GH-15…
[3.15] gh-151626: Fix tests that fail when PYTHONPYCACHEPREFIX is set (…
gpshead commentedon Jul 1, 2026
thanks!
[3.14] gh-151626: Fix tests that fail when PYTHONPYCACHEPREFIX is set (…
[3.13] gh-151626: Fix tests that fail when PYTHONPYCACHEPREFIX is set (…
Merge branch 'main' into maurycy/bye-abba