summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/exception_order_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/exception_order_runme.py')
-rw-r--r--Examples/test-suite/python/exception_order_runme.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Examples/test-suite/python/exception_order_runme.py b/Examples/test-suite/python/exception_order_runme.py
index c53521e3e..aa97e26e6 100644
--- a/Examples/test-suite/python/exception_order_runme.py
+++ b/Examples/test-suite/python/exception_order_runme.py
@@ -25,8 +25,7 @@ try:
a.foobar()
except RuntimeError, e:
if e.args[0] != "postcatch unknown":
- print "bad exception order",
- raise RuntimeError, e.args
+ raise RuntimeError("bad exception order {}".format(e.args))
try: