diff options
-rw-r--r-- | Lib/test/test_long.py | 2 | ||||
-rw-r--r-- | Lib/test/test_pow.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 573ef75..5e98225 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -326,7 +326,7 @@ def test_auto_overflow(): pass else: raise TestFailed("pow%r should have raised " - "TypeError" % ((longx, longy, long(z)))) + "TypeError" % ((longx, longy, long(z)),)) # ---------------------------------------- tests of long->float overflow diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py index 64c5890..7a38f67 100644 --- a/Lib/test/test_pow.py +++ b/Lib/test/test_pow.py @@ -70,8 +70,8 @@ def powtest(type): except TypeError: pass else: - raise TestFailed("expected TypeError from " - "pow%r" % ((type(i), j, k))) + raise ValueError, "expected TypeError from " + \ + "pow%r" % ((type(i), j, k),) continue if compare(pow(type(i),j,k), pow(type(i),j)% type(k)): raise ValueError, "pow(" +str(i)+ "," +str(j)+ \ |