]> granicus.if.org Git - python/commitdiff
Merged revisions 85000 via svnmerge from
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Sep 2010 22:14:13 +0000 (22:14 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Sep 2010 22:14:13 +0000 (22:14 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85000 | alexander.belopolsky | 2010-09-24 18:04:22 -0400 (Fri, 24 Sep 2010) | 1 line

  This should fix buildbot failure introduced by r84994
........

Lib/test/test_trace.py

index 20d036049be1bd74bf0f42510fd409113676db9a..99d6a1219966e01e2e04d6cc4ffe5c1b2d306ccb 100644 (file)
@@ -307,6 +307,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))