Skip to content

Commit

Permalink
Fixed deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
abalkin committed Nov 26, 2010
1 parent 0e803b3 commit 1f75f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def test_issue9936(self):
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))

Expand All @@ -340,7 +340,7 @@ def test_issue9936(self):
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'))
Expand Down

0 comments on commit 1f75f5d

Please sign in to comment.