summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_format.py')
-rw-r--r--Lib/test/test_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index ade3132..4c3d36e 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -216,7 +216,7 @@ def test_exc(formatstr, args, exception, excmsg):
print('Unexpected exception')
raise
else:
- raise TestFailed, 'did not get expected exception: %s' % excmsg
+ raise TestFailed('did not get expected exception: %s' % excmsg)
test_exc('abc %a', 1, ValueError,
"unsupported format character 'a' (0x61) at index 5")
@@ -241,4 +241,4 @@ if maxsize == 2**31-1:
except MemoryError:
pass
else:
- raise TestFailed, '"%*d"%(maxsize, -127) should fail'
+ raise TestFailed('"%*d"%(maxsize, -127) should fail')