From: <fwi...@us...> - 2008-08-10 15:03:24
|
Revision: 5130 http://jython.svn.sourceforge.net/jython/?rev=5130&view=rev Author: fwierzbicki Date: 2008-08-10 15:03:21 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Ignoring other SyntaxError details for now -- though I probably want to re-enable these two later. Modified Paths: -------------- branches/asm/Lib/test/test_genexps.py Modified: branches/asm/Lib/test/test_genexps.py =================================================================== --- branches/asm/Lib/test/test_genexps.py 2008-08-09 23:40:43 UTC (rev 5129) +++ branches/asm/Lib/test/test_genexps.py 2008-08-10 15:03:21 UTC (rev 5130) @@ -1,3 +1,10 @@ +#From http://svn.python.org/projects/python/branches/release25-maint/Lib/test_genexps.py@51333 + +#Ignoring details of SyntaxError for now -- justified I think for "invalid +# syntax" since that #message has very little info, where Antlr provides more +# detail. The others really are #differences that should be addressed, but I +# want to concentrate on the other errors for now. + doctests = """ Test simple loop with conditional @@ -134,12 +141,12 @@ Verify that syntax error's are raised for genexps used as lvalues - >>> (y for y in (1,2)) = 10 + >>> (y for y in (1,2)) = 10 #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... SyntaxError: can't assign to generator expression (<doctest test.test_genexps.__test__.doctests[40]>, line 1) - >>> (y for y in (1,2)) += 10 + >>> (y for y in (1,2)) += 10 #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... SyntaxError: augmented assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[41]>, line 1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |