diff options
Diffstat (limited to 'Lib/test/test_transformer.py')
-rw-r--r-- | Lib/test/test_transformer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_transformer.py b/Lib/test/test_transformer.py index 909cda5..b392055 100644 --- a/Lib/test/test_transformer.py +++ b/Lib/test/test_transformer.py @@ -14,11 +14,11 @@ class Tests(unittest.TestCase): for s in snippets: a = transformer.parse(s) - assert isinstance(a, ast.Module) + self.assertIsInstance(a, ast.Module) child1 = a.getChildNodes()[0] - assert isinstance(child1, ast.Stmt) + self.assertIsInstance(child1, ast.Stmt) child2 = child1.getChildNodes()[0] - assert isinstance(child2, ast.Assign) + self.assertIsInstance(child2, ast.Assign) # This actually tests the compiler, but it's a way to assure the ast # is correct |