[Python-checkins] python/dist/src/Lib/test test_generators.py, 1.50, 1.51

nnorwitz@users.sourceforge.net nnorwitz at users.sourceforge.net
Sat Oct 22 05:51:46 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10186/Lib/test

Modified Files:
	test_generators.py 
Log Message:
Revert previous checkin:

According to Jeremy, the comment only made sense when
the yield was disallowed.  Now it's testing that the yield
is allowed, so it's not bad and the outer finally is irrelevant.


Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- test_generators.py	21 Oct 2005 04:34:18 -0000	1.50
+++ test_generators.py	22 Oct 2005 03:51:42 -0000	1.51
@@ -774,7 +774,7 @@
 ...         try:
 ...             1//0
 ...         except ZeroDivisionError:
-...             yield 666  # bad because *outer* try has finally
+...             yield 666 
 ...         except:
 ...             pass
 ...     finally:



More information about the Python-checkins mailing list