From: <fwi...@us...> - 2008-08-09 16:27:46
|
Revision: 5122 http://jython.svn.sourceforge.net/jython/?rev=5122&view=rev Author: fwierzbicki Date: 2008-08-09 16:27:42 +0000 (Sat, 09 Aug 2008) Log Message: ----------- added #doctest: +IGNORE_EXCEPTION_DETAIL for SyntaxErrors that just have "invalid syntax" as the detail, since this is the default message and Antlr actually gives more information. 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 14:25:25 UTC (rev 5121) +++ branches/asm/Lib/test/test_genexps.py 2008-08-09 16:27:42 UTC (rev 5122) @@ -76,7 +76,7 @@ Verify that parenthesis are required in a statement - >>> def f(n): + >>> def f(n): #doctest: +IGNORE_EXCEPTION_DETAIL ... return i*i for i in xrange(n) Traceback (most recent call last): ... @@ -84,7 +84,7 @@ Verify that parenthesis are required when used as a keyword argument value - >>> dict(a = i for i in xrange(10)) + >>> dict(a = i for i in xrange(10)) #doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... SyntaxError: invalid syntax This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |