summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-01 23:07:29 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-01 23:07:29 (GMT)
commit33c2881b63b15d332fb5ca5a8711ab3c1d6a12e0 (patch)
treea65ae4d2ff3e2212690121eb4ee7df1faa806b21 /Lib/test
parentcde68cfc14e5b381916528056c26dcb6df95ceb4 (diff)
downloadcpython-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-xLib/test/regrtest.py5
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