diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2020-08-15 00:16:04 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2020-08-15 00:16:04 +0100 |
commit | d4ffa46f4168b85524ec26c07426fe97dfcb3a38 (patch) | |
tree | 0aa17ee06f98efc31873726a254ce04d1ea31765 /Examples/test-suite/python/template_typemaps_typedef_runme.py | |
parent | 66df0bd2242b04125bc008142de749b962991675 (diff) | |
download | swig-d4ffa46f4168b85524ec26c07426fe97dfcb3a38.tar.gz |
Convert python tests using 2to3
These tests were converted using 2to3 and should be valid using
Python 2.7 and Python 3+.
Diffstat (limited to 'Examples/test-suite/python/template_typemaps_typedef_runme.py')
-rw-r--r-- | Examples/test-suite/python/template_typemaps_typedef_runme.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Examples/test-suite/python/template_typemaps_typedef_runme.py b/Examples/test-suite/python/template_typemaps_typedef_runme.py index d84be64ff..a5209b71f 100644 --- a/Examples/test-suite/python/template_typemaps_typedef_runme.py +++ b/Examples/test-suite/python/template_typemaps_typedef_runme.py @@ -5,7 +5,7 @@ m1 = MultimapIntA() dummy_pair = m1.make_dummy_pair() val = m1.typemap_test(dummy_pair).val if val != 1234: - raise RuntimeError, "typemaps not working" + raise RuntimeError("typemaps not working") m2 = MultimapAInt() @@ -18,19 +18,19 @@ m2 = MultimapAInt() # raise RuntimeError, "typemaps not working" if typedef_test1(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test1 not working" + raise RuntimeError("typedef_test1 not working") if typedef_test2(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test2 not working" + raise RuntimeError("typedef_test2 not working") if typedef_test3(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test3 not working" + raise RuntimeError("typedef_test3 not working") if typedef_test4(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test4 not working" + raise RuntimeError("typedef_test4 not working") if typedef_test5(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test5 not working" + raise RuntimeError("typedef_test5 not working") if typedef_test6(dummy_pair).val != 1234: - raise RuntimeError, "typedef_test6 not working" + raise RuntimeError("typedef_test6 not working") |