diff --git a/SWIG/Examples/test-suite/python/lib_std_except.i b/SWIG/Examples/test-suite/python/lib_std_except.i new file mode 100644 index 000000000..5bc54a916 --- /dev/null +++ b/SWIG/Examples/test-suite/python/lib_std_except.i @@ -0,0 +1,21 @@ +%module lib_std_except + +%include "std_except.i" + + +%inline %{ + struct E1 : public std::exception + { + }; + + struct E2 + { + }; + + struct Test { + int foo1() throw(std::bad_exception) { return 0; } + int foo2() throw(std::logic_error) { return 0; } + int foo3() throw(E1) { return 0; } + int foo4() throw(E2) { return 0; } + }; +%} diff --git a/SWIG/Examples/test-suite/python/std_excepttest.i b/SWIG/Examples/test-suite/python/std_excepttest.i deleted file mode 100644 index 79ae1039b..000000000 --- a/SWIG/Examples/test-suite/python/std_excepttest.i +++ /dev/null @@ -1,22 +0,0 @@ -%module std_execpt - -%include "std_except.i" - - -%inline %{ - struct E1 : public std::exception - { - }; - - struct E2 - { - }; - - struct Test { - - int foo1() throw(std::exception) { return 0; } - int foo2() throw(std::logic_error) { return 0; } - int foo3() throw(E1) { return 0; } - int foo4() throw(E2) { return 0; } - }; -%} \ No newline at end of file