Bypass Python tests not supported by -builtin
Builtin types can't inherit from pure-python abstract bases
This commit is contained in:
parent
ab79441151
commit
49038b30b7
3 changed files with 10 additions and 7 deletions
|
|
@ -16,3 +16,11 @@ namespace std
|
|||
%template(IntVector) vector<int>;
|
||||
%template(IntList) list<int>;
|
||||
}
|
||||
|
||||
%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