summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-09-24 22:14:13 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-09-24 22:14:13 (GMT)
commit1a0eb98b9c41224f6ea8fd8f87687f79f723ba8c (patch)
tree2d90acc155a36f4bc220d223a5bc856d138a6fef
parent402392bd5afffedf38b0270a3122e4687bdd13a2 (diff)
downloadcpython-1a0eb98b9c41224f6ea8fd8f87687f79f723ba8c.zip
cpython-1a0eb98b9c41224f6ea8fd8f87687f79f723ba8c.tar.gz
cpython-1a0eb98b9c41224f6ea8fd8f87687f79f723ba8c.tar.bz2
Merged revisions 85000 via svnmerge from
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 ........
-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 20d0360..99d6a12 100644
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -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))