From: <fwi...@us...> - 2008-10-16 12:07:29
|
Revision: 5421 http://jython.svn.sourceforge.net/jython/?rev=5421&view=rev Author: fwierzbicki Date: 2008-10-16 12:07:24 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Move essential part of test106 to test_jy_compile.py (bare return not permitted in exec). Modified Paths: -------------- trunk/jython/Lib/test/test_jy_compile.py Removed Paths: ------------- trunk/jython/bugtests/test106.py Modified: trunk/jython/Lib/test/test_jy_compile.py =================================================================== --- trunk/jython/Lib/test/test_jy_compile.py 2008-10-16 06:38:43 UTC (rev 5420) +++ trunk/jython/Lib/test/test_jy_compile.py 2008-10-16 12:07:24 UTC (rev 5421) @@ -159,6 +159,7 @@ ai("9+","eval") ai("lambda z:","eval") ai("a b","eval") + ai("return 2.3") def test_filename(self): self.assertEquals(compile_("a = 1\n", "abc").co_filename, Deleted: trunk/jython/bugtests/test106.py =================================================================== --- trunk/jython/bugtests/test106.py 2008-10-16 06:38:43 UTC (rev 5420) +++ trunk/jython/bugtests/test106.py 2008-10-16 12:07:24 UTC (rev 5421) @@ -1,18 +0,0 @@ -""" -Check the return in exec is illegal. -""" - -import support - -cmd = """print 'hi' -return 2.3 -print 'fred'""" - -try: - co = compile(cmd, "<string>", "exec") -except SyntaxError, e: - pass -else: - raise support.TestError("Should cause SyntaxError") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |