From: <fwi...@us...> - 2009-07-30 14:46:49
|
Revision: 6608 http://jython.svn.sourceforge.net/jython/?rev=6608&view=rev Author: fwierzbicki Date: 2009-07-30 14:46:38 +0000 (Thu, 30 Jul 2009) Log Message: ----------- As CPython trunk: assert_ -> assertTrue Modified Paths: -------------- trunk/jython/Lib/test/test_codeop.py Modified: trunk/jython/Lib/test/test_codeop.py =================================================================== --- trunk/jython/Lib/test/test_codeop.py 2009-07-30 14:42:55 UTC (rev 6607) +++ trunk/jython/Lib/test/test_codeop.py 2009-07-30 14:46:38 UTC (rev 6608) @@ -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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |