[New-bugs-announce] [issue45205] test_compileall logs "Compiling ..." messages

STINNER Victor report at bugs.python.org
Wed Sep 15 09:19:29 EDT 2021


New submission from STINNER Victor <vstinner at python.org>:

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).

----------
components: Tests
messages: 401833
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_compileall logs "Compiling ..." messages
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45205>
_______________________________________


More information about the New-bugs-announce mailing list