summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_transformer.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
commitb0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch)
treee2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_transformer.py
parentf14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff)
downloadcpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.zip
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.gz
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.bz2
use assert[Not]IsInstance where appropriate
Diffstat (limited to 'Lib/test/test_transformer.py')
-rw-r--r--Lib/test/test_transformer.py6
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