swig/Examples/test-suite/python/exception_classname_runme.py

6 lines
121 B
Python

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