Fix regrtest --coverage on Windows

Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.
This commit is contained in:
Victor Stinner 2015-10-01 00:53:09 +02:00
parent c29f399e7e
commit a53a818c3c
3 changed files with 4 additions and 6 deletions

View file

@ -272,10 +272,7 @@ class Regrtest:
def run_tests_sequential(self): def run_tests_sequential(self):
if self.ns.trace: if self.ns.trace:
import trace import trace
self.tracer = trace.Trace(ignoredirs=[sys.base_prefix, self.tracer = trace.Trace(trace=False, count=True)
sys.base_exec_prefix,
tempfile.gettempdir()],
trace=False, count=True)
save_modules = sys.modules.keys() save_modules = sys.modules.keys()

View file

@ -605,8 +605,6 @@ class ArgsTestCase(BaseTestCase):
% (self.TESTNAME_REGEX, len(tests))) % (self.TESTNAME_REGEX, len(tests)))
self.check_line(output, regex) self.check_line(output, regex)
@unittest.skipIf(sys.platform == 'win32',
"FIXME: coverage doesn't work on Windows")
def test_coverage(self): def test_coverage(self):
# test --coverage # test --coverage
test = self.create_test() test = self.create_test()

View file

@ -157,6 +157,9 @@ Documentation
Tests Tests
----- -----
- Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the
list of ignored directories.
- PCbuild\rt.bat now accepts an unlimited number of arguments to pass along - PCbuild\rt.bat now accepts an unlimited number of arguments to pass along
to regrtest.py. Previously there was a limit of 9. to regrtest.py. Previously there was a limit of 9.