Bug report
Bug description:
Some tests that check .pyc files creation are failing when sys.pycache_prefix is set.
List of tests that failed on Arm64 MacOS (maybe there's more in skipped ones):
example: PYTHONPYCACHEPREFIX="$HOME/__pycache__" ./python.exe -m test test.test_compileall test.test_import test.test_importlib.test_util test.test_inspect.test_inspect test.test_py_compile -v
output (edited for clarity and length): testres.txt
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Bug report
Bug description:
Some tests that check .pyc files creation are failing when
sys.pycache_prefixis set.List of tests that failed on Arm64 MacOS (maybe there's more in skipped ones):
test.test_inspect.test_inspect.TestModuleCLI.test_details_option_with_packagetest.test_import.PycacheTests.test_import_pyc_pathtest.test_import.PycacheTests.test_unwritable_directorytest.test_importlib.test_util.PEP3147Tests.test_cache_from_sourcetest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_cwdtest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_no_dottest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_optimization_Nonetest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_optimization_empty_stringtest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_optimization_settest.test_importlib.test_util.PEP3147Tests.test_cache_from_source_path_like_argtest.test_py_compile.PyCompileCLITestCase.test_with_filestest.test_py_compile.PyCompileTestsBase.test_double_dot_no_clobbertest.test_compileall.CompileallTestsBase.test_include_on_stdintest.test_compileall.CompileallTestsBase.test_multiple_runstest.test_compileall.CompileallTestsBase.test_symlink_loopexample:
PYTHONPYCACHEPREFIX="$HOME/__pycache__" ./python.exe -m test test.test_compileall test.test_import test.test_importlib.test_util test.test_inspect.test_inspect test.test_py_compile -voutput (edited for clarity and length): testres.txt
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS