aboutsummaryrefslogtreecommitdiff
path: root/tests/test_c_ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_c_ast.py')
-rw-r--r--tests/test_c_ast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_c_ast.py b/tests/test_c_ast.py
index 8e95d55..6ea3ceb 100644
--- a/tests/test_c_ast.py
+++ b/tests/test_c_ast.py
@@ -16,11 +16,11 @@ class Test_c_ast(unittest.TestCase):
left=c_ast.Constant(type='int', value='6'),
right=c_ast.ID(name='joe'))
- self.failUnless(isinstance(b1.left, c_ast.Constant))
+ self.assertIsInstance(b1.left, c_ast.Constant)
self.assertEqual(b1.left.type, 'int')
self.assertEqual(b1.left.value, '6')
- self.failUnless(isinstance(b1.right, c_ast.ID))
+ self.assertIsInstance(b1.right, c_ast.ID)
self.assertEqual(b1.right.name, 'joe')
def test_weakref_works_on_nodes(self):