[Python-checkins] r86819 - python/branches/py3k/Lib/test/test_trace.py
alexander.belopolsky
python-checkins at python.org
Fri Nov 26 19:51:39 CET 2010
Author: alexander.belopolsky
Date: Fri Nov 26 19:51:39 2010
New Revision: 86819
Log:
Fixed deprecation warnings.
Modified:
python/branches/py3k/Lib/test/test_trace.py
Modified: python/branches/py3k/Lib/test/test_trace.py
==============================================================================
--- python/branches/py3k/Lib/test/test_trace.py (original)
+++ python/branches/py3k/Lib/test/test_trace.py Fri Nov 26 19:51:39 2010
@@ -330,7 +330,7 @@
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__)
+ modname = trace._fullmodname(sys.modules[modname].__file__)
self.assertIn(modname, coverage)
self.assertEqual(coverage[modname], (5, 100))
@@ -340,7 +340,7 @@
class Test_Ignore(unittest.TestCase):
def test_ignored(self):
jn = os.path.join
- ignore = trace.Ignore(['x', 'y.z'], [jn('foo', 'bar')])
+ ignore = trace._Ignore(['x', 'y.z'], [jn('foo', 'bar')])
self.assertTrue(ignore.names('x.py', 'x'))
self.assertFalse(ignore.names('xy.py', 'xy'))
self.assertFalse(ignore.names('y.py', 'y'))
More information about the Python-checkins
mailing list