diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
commit | 3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch) | |
tree | c61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_exception_variations.py | |
parent | e0281cab810c30a23cf2490704e0f85aa4751e83 (diff) | |
download | cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2 |
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_exception_variations.py')
-rw-r--r-- | Lib/test/test_exception_variations.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_exception_variations.py b/Lib/test/test_exception_variations.py index 8fe75e8..5bcb8fc 100644 --- a/Lib/test/test_exception_variations.py +++ b/Lib/test/test_exception_variations.py @@ -9,7 +9,7 @@ class ExceptionTestCase(unittest.TestCase): hit_finally = False try: - raise Exception, 'nyaa!' + raise Exception('nyaa!') except: hit_except = True else: @@ -44,7 +44,7 @@ class ExceptionTestCase(unittest.TestCase): hit_finally = False try: - raise Exception, 'yarr!' + raise Exception('yarr!') except: hit_except = True finally: @@ -71,7 +71,7 @@ class ExceptionTestCase(unittest.TestCase): hit_except = False try: - raise Exception, 'ahoy!' + raise Exception('ahoy!') except: hit_except = True @@ -92,7 +92,7 @@ class ExceptionTestCase(unittest.TestCase): hit_else = False try: - raise Exception, 'foo!' + raise Exception('foo!') except: hit_except = True else: @@ -132,7 +132,7 @@ class ExceptionTestCase(unittest.TestCase): try: try: - raise Exception, 'inner exception' + raise Exception('inner exception') except: hit_inner_except = True finally: @@ -159,7 +159,7 @@ class ExceptionTestCase(unittest.TestCase): else: hit_inner_else = True - raise Exception, 'outer exception' + raise Exception('outer exception') except: hit_except = True else: |