diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 +0000 |
commit | 03f6649445c535b585c00acd7a5fd3b7a3ae5018 (patch) | |
tree | 6719b71a07303286fa8ef3acd2bf48b5f621a19d /Lib/test/test_extcall.py | |
parent | 44c8e4b776323e23a7173611c472fd4da04f6fae (diff) | |
download | cpython-03f6649445c535b585c00acd7a5fd3b7a3ae5018.tar.gz |
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 40ebad0bcf..56a207af59 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -90,7 +90,7 @@ class Nothing: if i < 3: return i else: - raise IndexError, i + raise IndexError(i) g(*Nothing()) class Nothing: @@ -253,7 +253,7 @@ try: except TypeError: pass else: - raise TestFailed, 'expected TypeError; no exception raised' + raise TestFailed('expected TypeError; no exception raised') a, b, d, e, v, k = 'A', 'B', 'D', 'E', 'V', 'K' funcs = [] |