diff options
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 73c2489..9f42659 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 |