summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-01 22:48:12 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-01 22:48:12 +0000
commit3faa52ecc4aeb30f8913b4dd105184f6f7bc733d (patch)
treed4c6c78e934c98ef15aaf79fae249063b5a41a1b /Lib/test/test_exceptions.py
parent1bbc04831071891c5bbeb53a2c1defbbf83245d9 (diff)
downloadcpython-git-3faa52ecc4aeb30f8913b4dd105184f6f7bc733d.tar.gz
Allow 'continue' inside 'try' clause
SF patch 102989 by Thomas Wouters
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py21
1 files changed, 2 insertions, 19 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 73c2489022..9f42659adc 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -104,28 +104,11 @@ def ckmsg(src, msg):
s = '''\
while 1:
try:
- continue
- except:
- pass
-'''
-ckmsg(s, "'continue' not supported inside 'try' clause")
-s = '''\
-while 1:
- try:
- continue
- finally:
pass
-'''
-ckmsg(s, "'continue' not supported inside 'try' clause")
-s = '''\
-while 1:
- try:
- if 1:
- continue
finally:
- pass
+ continue
'''
-ckmsg(s, "'continue' not supported inside 'try' clause")
+ckmsg(s, "'continue' not supported inside 'finally' clause")
s = '''\
try:
continue