summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/cpp11_decltype_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/cpp11_decltype_runme.py')
-rw-r--r--Examples/test-suite/python/cpp11_decltype_runme.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Examples/test-suite/python/cpp11_decltype_runme.py b/Examples/test-suite/python/cpp11_decltype_runme.py
index 1650d9004..a18f334dc 100644
--- a/Examples/test-suite/python/cpp11_decltype_runme.py
+++ b/Examples/test-suite/python/cpp11_decltype_runme.py
@@ -3,16 +3,16 @@ import cpp11_decltype
a = cpp11_decltype.A()
a.i = 5
if a.i != 5:
- raise RuntimeError, "Assignment to a.i failed."
+ raise RuntimeError("Assignment to a.i failed.")
a.j = 10
if a.j != 10:
- raise RuntimeError, "Assignment to a.j failed."
+ raise RuntimeError("Assignment to a.j failed.")
b = a.foo(5)
if b != 10:
- raise RuntimeError, "foo(5) should return 10."
+ raise RuntimeError("foo(5) should return 10.")
b = a.foo(6)
if b != 0:
- raise RuntimeError, "foo(6) should return 0."
+ raise RuntimeError("foo(6) should return 0.")