[New-bugs-announce] [issue47089] Avoid sporadic failure of test_compileall on Windows

Jeremy Kloth report at bugs.python.org
Mon Mar 21 17:34:06 EDT 2022

New submission from Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com>:

Testing on Windows occasionally has issues in test_compileall when running with multiple processes.  This is due to other test files importing stdlib modules at the same time that compileall is doing its own testing.  While not fatal (test_compileall succeeds on re-run), the transient warnings obfuscate the test results for other "real" warnings (e.g., compiler warnings) without digging into each run separately.

This can be avoided by using the PYTHONPYCACHEPREFIX functionality to compile the stdlib modules locally.

components: Tests
messages: 415711
nosy: jkloth
priority: normal
severity: normal
status: open
title: Avoid sporadic failure of test_compileall on Windows
versions: Python 3.10, Python 3.11, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list