blob: a9d9b00cfad95f1d026531d613991b2fea1f47df [file]
from swig_catch_stdexcept import *
from swig_test_utils import swig_assert_raises
with swig_assert_raises(ValueError):
throw_invalid_argument()
with swig_assert_raises(IndexError):
throw_out_of_range()
with swig_assert_raises(RuntimeError):
throw_runtime_error()
with swig_assert_raises(TypeError):
throw_bad_cast()
with swig_assert_raises(SystemError):
throw_exception()
with swig_assert_raises(RuntimeError):
throw_int()