mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -17,7 +17,7 @@ class seq(base_set):
|
|||
|
||||
def check(ok, *args):
|
||||
if not ok:
|
||||
raise TestFailed, " ".join(map(str, args))
|
||||
raise TestFailed(" ".join(map(str, args)))
|
||||
|
||||
a = base_set(1)
|
||||
b = set(1)
|
||||
|
@ -95,7 +95,7 @@ class Deviant2:
|
|||
|
||||
def __cmp__(self, other):
|
||||
if other == 4:
|
||||
raise RuntimeError, "gotcha"
|
||||
raise RuntimeError("gotcha")
|
||||
|
||||
try:
|
||||
check(Deviant2() not in a, "oops")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue