mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Raise statement normalization in Lib/test/.
This commit is contained in:
parent
e0281cab81
commit
3add4d78ff
47 changed files with 218 additions and 218 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue