From 3add4d78ff9f5de02e2c0de09efe9a9b5317539f Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Wed, 29 Aug 2007 23:37:32 +0000 Subject: Raise statement normalization in Lib/test/. --- Lib/test/test_contains.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_contains.py') diff --git a/Lib/test/test_contains.py b/Lib/test/test_contains.py index 7cae480c95..b55057de79 100644 --- a/Lib/test/test_contains.py +++ b/Lib/test/test_contains.py @@ -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") -- cgit v1.2.1