summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-22 03:51:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-22 03:51:42 (GMT)
commitebc3457937330aaab2b64424b82996b8128e0ba1 (patch)
tree9c7ae770f71c64952d0cf195abfda041a9bdd4c2 /Lib/test
parentab541bb98e4b0deebc7baaaf6e9e231cd499b77c (diff)
downloadcpython-ebc3457937330aaab2b64424b82996b8128e0ba1.zip
cpython-ebc3457937330aaab2b64424b82996b8128e0ba1.tar.gz
cpython-ebc3457937330aaab2b64424b82996b8128e0ba1.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index d226043..cb7e992 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -774,7 +774,7 @@ These are fine:
... try:
... 1//0
... except ZeroDivisionError:
-... yield 666 # bad because *outer* try has finally
+... yield 666
... except:
... pass
... finally: