This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Avoid sporadic failure of test_compileall on Windows
Type: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: jkloth, miss-islington, vstinner
Priority: normal Keywords: patch

Created on 2022-03-21 21:34 by jkloth, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 32037 merged jkloth, 2022-03-21 21:36
PR 32237 merged miss-islington, 2022-04-01 18:13
PR 32240 merged jkloth, 2022-04-01 19:03
Messages (6)
msg415711 - (view) Author: Jeremy Kloth (jkloth) * Date: 2022-03-21 21:34
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.
msg416504 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-04-01 18:13
New changeset 76b8a075b8a79b08468fd0ed06a489a5c815bc11 by Jeremy Kloth in branch 'main':
bpo-47089: Avoid test_compileall failures on Windows (GH-32037)
https://github.com/python/cpython/commit/76b8a075b8a79b08468fd0ed06a489a5c815bc11
msg416519 - (view) Author: miss-islington (miss-islington) Date: 2022-04-01 20:38
New changeset 1069d529590850e87a11b8c559a7fb296e9c626a by Miss Islington (bot) in branch '3.10':
bpo-47089: Avoid test_compileall failures on Windows (GH-32037)
https://github.com/python/cpython/commit/1069d529590850e87a11b8c559a7fb296e9c626a
msg416527 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-04-02 01:40
New changeset 306a93b4819db611041da735ca3b34117a3bc961 by Jeremy Kloth in branch '3.9':
[3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). (GH-32240)
https://github.com/python/cpython/commit/306a93b4819db611041da735ca3b34117a3bc961
msg416528 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-04-02 01:41
Thanks for this enhancement. I close the issue.

Do you know if it does fix the old bpo-37387 issue?
msg416597 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-04-02 21:56
bpo-37387 was closed as a duplicate of this issue.
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91245
2022-04-02 21:56:55vstinnersetmessages: + msg416597
2022-04-02 21:56:40vstinnerlinkissue37387 superseder
2022-04-02 01:41:38vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg416528

stage: patch review -> resolved
2022-04-02 01:40:31vstinnersetmessages: + msg416527
2022-04-01 20:38:52miss-islingtonsetmessages: + msg416519
2022-04-01 19:03:39jklothsetpull_requests: + pull_request30311
2022-04-01 18:13:32miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request30308
2022-04-01 18:13:11vstinnersetmessages: + msg416504
2022-03-26 19:21:05jklothsetnosy: + vstinner
2022-03-21 21:36:22jklothsetkeywords: + patch
stage: patch review
pull_requests: + pull_request30127
2022-03-21 21:34:06jklothcreate