diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-09-24 22:04:22 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-09-24 22:04:22 (GMT) |
commit | a847c81914bfce3d7b54eccf2494aa15cf750539 (patch) | |
tree | 5f5a590364b47d00bb90d5884b72b4bee22722ef /Lib | |
parent | 82df53e9324450483efce4582af62ae1c2232d2d (diff) | |
download | cpython-a847c81914bfce3d7b54eccf2494aa15cf750539.zip cpython-a847c81914bfce3d7b54eccf2494aa15cf750539.tar.gz cpython-a847c81914bfce3d7b54eccf2494aa15cf750539.tar.bz2 |
This should fix buildbot failure introduced by r84994
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)) |