diff Lib/test/test_codeop.py @ 55003:adf66b52022d

convert old fail* assertions to assert*
author Benjamin Peterson <benjamin@python.org>
date Tue, 30 Jun 2009 23:06:06 +0000
parents 9c930a32cebb
children d99cadf0e5f0
line wrap: on
line diff
--- a/Lib/test/test_codeop.py	Tue Jun 30 22:27:25 2009 +0000
+++ b/Lib/test/test_codeop.py	Tue Jun 30 23:06:06 2009 +0000
@@ -23,7 +23,7 @@
         '''succeed iff str is a valid piece of code'''
         if is_jython:
             code = compile_command(str, "<input>", symbol)
-            self.assert_(code)
+            self.assertTrue(code)
             if symbol == "single":
                 d,r = {},{}
                 saved_stdout = sys.stdout
@@ -52,9 +52,9 @@
             compile_command(str,symbol=symbol)
             self.fail("No exception thrown for invalid code")
         except SyntaxError:
-            self.assert_(is_syntax)
+            self.assertTrue(is_syntax)
         except OverflowError:
-            self.assert_(not is_syntax)
+            self.assertTrue(not is_syntax)
 
     def test_valid(self):
         av = self.assertValid