summaryrefslogtreecommitdiff
path: root/Lib/test/test_compiler.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 +0000
commit5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e (patch)
tree41f38aca16748628d53906337f06fdf087f52314 /Lib/test/test_compiler.py
parentbe96cf608fa656d7e53144cf85082ed5661e8c13 (diff)
downloadcpython-git-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.tar.gz
convert usage of fail* to assert*
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r--Lib/test/test_compiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index f1fef74877..24930f8a63 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -87,7 +87,7 @@ class CompilerTest(unittest.TestCase):
def testDocstrings(self):
c = compiler.compile('"doc"', '<string>', 'exec')
- self.assert_('__doc__' in c.co_names)
+ self.assertTrue('__doc__' in c.co_names)
c = compiler.compile('def f():\n "doc"', '<string>', 'exec')
g = {}
exec c in g
@@ -110,9 +110,9 @@ class CompilerTest(unittest.TestCase):
def _check_lineno(self, node):
if not node.__class__ in NOLINENO:
- self.assert_(isinstance(node.lineno, int),
+ self.assertTrue(isinstance(node.lineno, int),
"lineno=%s on %s" % (node.lineno, node.__class__))
- self.assert_(node.lineno > 0,
+ self.assertTrue(node.lineno > 0,
"lineno=%s on %s" % (node.lineno, node.__class__))
for child in node.getChildNodes():
self.check_lineno(child)