diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-26 18:51:39 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-26 18:51:39 (GMT) |
commit | 1f75f5d506fff0fb7ff42b72817e49f3329f6f0e (patch) | |
tree | f15f65c2e064ff5b8d8e391bc498be7400fd2b02 /Lib | |
parent | 0e803b3322f191f845b785caffb24cd1c17aaf64 (diff) | |
download | cpython-1f75f5d506fff0fb7ff42b72817e49f3329f6f0e.zip cpython-1f75f5d506fff0fb7ff42b72817e49f3329f6f0e.tar.gz cpython-1f75f5d506fff0fb7ff42b72817e49f3329f6f0e.tar.bz2 |
Fixed deprecation warnings.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 6c1d404..93df84f 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -330,7 +330,7 @@ class TestCoverage(unittest.TestCase): 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 TestCoverage(unittest.TestCase): 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')) |