]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
This should fix buildbot failure introduced by r84994
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Sep 2010 22:04:22 +0000 (22:04 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Sep 2010 22:04:22 +0000 (22:04 +0000)
Lib/test/test_trace.py

index 48fc0abb141ba650f688eca9d66003ebaae8c45d..33d7aa14693af424f3881ffadbe43928767b9dc6 100644 (file)
@@ -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))