summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/libregrtest/main.py4
-rw-r--r--Lib/test/test_regrtest.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 3724f27..5d34cff 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -246,7 +246,9 @@ def main(tests=None, **kwargs):
random.shuffle(selected)
if ns.trace:
import trace, tempfile
- tracer = trace.Trace(trace=False, count=True)
+ tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
+ tempfile.gettempdir()],
+ trace=False, count=True)
test_times = []
support.verbose = ns.verbose # Tell tests to be moderately quiet
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 5906c17..ca4b356 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -549,6 +549,8 @@ class ArgsTestCase(BaseTestCase):
% (self.TESTNAME_REGEX, len(tests)))
self.check_line(output, regex)
+ @unittest.skipIf(sys.platform == 'win32',
+ "FIXME: coverage doesn't work on Windows")
def test_coverage(self):
# test --coverage
test = self.create_test()