mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#5656: detect correct encoding of files when reporting coverage in trace.py, and ignore files in the temporary directory when reporting.
This commit is contained in:
parent
cde68cfc14
commit
33c2881b63
3 changed files with 23 additions and 11 deletions
|
@ -404,8 +404,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
|
|||
print("Using random seed", random_seed)
|
||||
random.shuffle(tests)
|
||||
if trace:
|
||||
import trace
|
||||
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix],
|
||||
import trace, tempfile
|
||||
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,
|
||||
tempfile.gettempdir()],
|
||||
trace=False, count=True)
|
||||
test_times = []
|
||||
support.verbose = verbose # Tell tests to be moderately quiet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue