swig/Examples/test-suite/python/exception_classname_runme.py
William S Fulton cc7319f52f Replace assert from Python testcases with code that always runs.
assert code is sometimes not executed, eg when running python -O.
2016-06-19 20:11:51 +01:00

5 lines
121 B
Python

import exception_classname
a = exception_classname.Exception()
if a.testfunc() != 42:
raise RuntimeError("Not 42!")