➜

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
标题: Avoid sporadic failure of test_compileall on Windows
类型: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: jkloth, miss-islington, vstinner
优先级: normal 关键字: 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) * 日期: 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) 日期: 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) 日期: 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) 日期: 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) 日期: 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) 日期: 2022-04-02 21:56
bpo-37387 was closed as a duplicate of this issue.
历史
日期 用户 动作 参数
2022-04-11 14:59:57admin修改github: 91245
2022-04-02 21:56:55vstinner修改消息: + msg416597
2022-04-02 21:56:40vstinner链接issue37387 superseder
2022-04-02 01:41:38vstinner修改状态: open -> closed
resolution: fixed
消息: + msg416528

stage: patch review -> resolved
2022-04-02 01:40:31vstinner修改消息: + msg416527
2022-04-01 20:38:52miss-islington修改消息: + msg416519
2022-04-01 19:03:39jkloth修改pull_requests: + pull_request30311
2022-04-01 18:13:32miss-islington修改抄送: + miss-islington
pull_requests: + pull_request30308
2022-04-01 18:13:11vstinner修改消息: + msg416504
2022-03-26 19:21:05jkloth修改抄送: + vstinner
2022-03-21 21:36:22jkloth修改keywords: + patch
stage: patch review
pull_requests: + pull_request30127
2022-03-21 21:34:06jkloth创建