Kaydet (Commit) a53a818c authored tarafından Victor Stinner's avatar Victor Stinner

Fix regrtest --coverage on Windows

Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.
üst c29f399e
......@@ -272,10 +272,7 @@ class Regrtest:
def run_tests_sequential(self):
if self.ns.trace:
import trace
self.tracer = trace.Trace(ignoredirs=[sys.base_prefix,
sys.base_exec_prefix,
tempfile.gettempdir()],
trace=False, count=True)
self.tracer = trace.Trace(trace=False, count=True)
save_modules = sys.modules.keys()
......
......@@ -605,8 +605,6 @@ 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()
......
......@@ -157,6 +157,9 @@ Documentation
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
to regrtest.py. Previously there was a limit of 9.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment