summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_trace.py
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-09-24 22:04:22 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-09-24 22:04:22 (GMT)
commita847c81914bfce3d7b54eccf2494aa15cf750539 (patch)
tree5f5a590364b47d00bb90d5884b72b4bee22722ef /Lib/test/test_trace.py
parent82df53e9324450483efce4582af62ae1c2232d2d (diff)
downloadcpython-a847c81914bfce3d7b54eccf2494aa15cf750539.zip
cpython-a847c81914bfce3d7b54eccf2494aa15cf750539.tar.gz
cpython-a847c81914bfce3d7b54eccf2494aa15cf750539.tar.bz2
This should fix buildbot failure introduced by r84994
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r--Lib/test/test_trace.py2
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))