diff options
author | Georg Brandl <georg@python.org> | 2009-04-01 23:07:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-01 23:07:29 (GMT) |
commit | 33c2881b63b15d332fb5ca5a8711ab3c1d6a12e0 (patch) | |
tree | a65ae4d2ff3e2212690121eb4ee7df1faa806b21 /Lib/test | |
parent | cde68cfc14e5b381916528056c26dcb6df95ceb4 (diff) | |
download | cpython-33c2881b63b15d332fb5ca5a8711ab3c1d6a12e0.zip cpython-33c2881b63b15d332fb5ca5a8711ab3c1d6a12e0.tar.gz cpython-33c2881b63b15d332fb5ca5a8711ab3c1d6a12e0.tar.bz2 |
#5656: detect correct encoding of files when reporting coverage in trace.py, and ignore files in the temporary directory when reporting.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/regrtest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index f970404..0408a02 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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 |