Bypass Python tests throwing base classes as exceptions for -builtin
Throwing builtin classes as exceptions is not supported
This commit is contained in:
parent
34eb4b15d3
commit
bbad7f96ab
9 changed files with 65 additions and 30 deletions
|
|
@ -23,3 +23,11 @@ void test_domain_error() throw(std::domain_error)
|
|||
%include <std_except.i>
|
||||
void test_domain_error() throw(std::domain_error)
|
||||
{ throw std::domain_error("std::domain_error"); }
|
||||
|
||||
%inline %{
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
bool is_python_builtin() { return true; }
|
||||
#else
|
||||
bool is_python_builtin() { return false; }
|
||||
#endif
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue