From: <zy...@us...> - 2008-08-11 03:17:47
|
Revision: 5142 http://jython.svn.sourceforge.net/jython/?rev=5142&view=rev Author: zyasoft Date: 2008-08-11 03:17:44 +0000 (Mon, 11 Aug 2008) Log Message: ----------- Commented out inappropriate doctest in test_genexps that tested for the reuse of memory objects. This obviously doesn't apply to Jython and other nonrefcounted implementations. Fixes test_genexps 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-11 02:56:53 UTC (rev 5141) +++ branches/asm/Lib/test/test_genexps.py 2008-08-11 03:17:44 UTC (rev 5142) @@ -133,12 +133,13 @@ >>> list(g) [(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (2, 3)] -Verify re-use of tuples (a side benefit of using genexps over listcomps) +This doesn't make sense for Jython or other non refcounted implementations +# Verify re-use of tuples (a side benefit of using genexps over listcomps) +# +# >>> tupleids = map(id, ((i,i) for i in xrange(10))) +# >>> int(max(tupleids) - min(tupleids)) +# 0 - >>> tupleids = map(id, ((i,i) for i in xrange(10))) - >>> int(max(tupleids) - min(tupleids)) - 0 - Verify that syntax error's are raised for genexps used as lvalues >>> (y for y in (1,2)) = 10 #doctest: +IGNORE_EXCEPTION_DETAIL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |