diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_trace.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 48fc0ab..33d7aa1 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -329,6 +329,8 @@ class TestCoverage(unittest.TestCase): for line in stdout: lines, cov, module = line.split()[:3] coverage[module] = (int(lines), int(cov[:-1])) + # XXX This is needed to run regrtest.py as a script + modname = trace.fullmodname(sys.modules[modname].__file__) self.assertIn(modname, coverage) self.assertEqual(coverage[modname], (5, 100)) |