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: test_compileall logs "Compiling ..." messages
Type: Stage: resolved
Components: Tests Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, miss-islington, vstinner
Priority: normal Keywords: patch

Created on 2021-09-15 13:19 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28356 merged vstinner, 2021-09-15 15:53
PR 28364 merged miss-islington, 2021-09-15 18:20
PR 28370 merged miss-islington, 2021-09-15 18:27
Messages (5)
msg401833 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-15 13:19
The following 4 test_compileall tests logs "Compiling ..." messages:

test_larger_than_32_bit_times (test.test_compileall.CompileallTestsWithSourceEpoch) ... Compiling '/tmp/tmp1k_q89f5/_test.py'...
ok
test_year_2038_mtime_compilation (test.test_compileall.CompileallTestsWithSourceEpoch) ... Compiling '/tmp/tmp83hk4o6n/_test.py'...
ok
test_larger_than_32_bit_times (test.test_compileall.CompileallTestsWithoutSourceEpoch) ... Compiling '/tmp/tmpf9fir94a/_test.py'...
ok
test_year_2038_mtime_compilation (test.test_compileall.CompileallTestsWithoutSourceEpoch) ... Compiling '/tmp/tmpw9mtirkx/_test.py'...
ok

Current output:
----------------
$ ./python -m test test_compileall 
0:00:00 load avg: 1.09 Run tests sequentially
0:00:00 load avg: 1.09 [1/1] test_compileall
Compiling '/tmp/tmpdc269658/_test.py'...
Compiling '/tmp/tmppeummd0q/_test.py'...
Compiling '/tmp/tmp_vf3awm7/_test.py'...
Compiling '/tmp/tmpgkxrt872/_test.py'...

== Tests result: SUCCESS ==

1 test OK.

Total duration: 23.3 sec
Tests result: SUCCESS
----------------

I would prefer a quiet output (no message).
msg401873 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-15 18:20
New changeset cc057ff5227b3a4ded637caa7ba51b67b06abaaa by Victor Stinner in branch 'main':
bpo-45205: Make test_compileall quiet (GH-28356)
https://github.com/python/cpython/commit/cc057ff5227b3a4ded637caa7ba51b67b06abaaa
msg401893 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-15 19:32
New changeset 17000b5a80e6ec071ea5007dcc6792e9daaaf0f2 by Miss Islington (bot) in branch '3.10':
bpo-45205: Make test_compileall quiet (GH-28356) (GH-28370)
https://github.com/python/cpython/commit/17000b5a80e6ec071ea5007dcc6792e9daaaf0f2
msg401895 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-15 19:33
New changeset 9443ce4eedbcaffb3262e7ede1dd100678e85506 by Miss Islington (bot) in branch '3.9':
bpo-45205: Make test_compileall quiet (GH-28356) (GH-28364)
https://github.com/python/cpython/commit/9443ce4eedbcaffb3262e7ede1dd100678e85506
msg401896 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-15 19:34
Thanks, Victor! ✨ 🍰 ✨
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89368
2021-09-15 19:34:24lukasz.langasetstatus: open -> closed
resolution: fixed
messages: + msg401896

stage: patch review -> resolved
2021-09-15 19:33:55lukasz.langasetmessages: + msg401895
2021-09-15 19:32:04lukasz.langasetmessages: + msg401893
2021-09-15 18:27:17miss-islingtonsetpull_requests: + pull_request26784
2021-09-15 18:20:55miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26778
2021-09-15 18:20:48lukasz.langasetnosy: + lukasz.langa
messages: + msg401873
2021-09-15 15:53:15vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request26770
2021-09-15 13:19:29vstinnercreate