Bypass Python tests throwing base classes as exceptions for -builtin

Throwing builtin classes as exceptions is not supported
This commit is contained in:
William S Fulton 2014-10-02 20:03:40 +01:00
commit bbad7f96ab
9 changed files with 65 additions and 30 deletions

View file

@ -52,4 +52,10 @@ public:
return 1;
}
};
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}