Commit 4ce75427 authored by Stefan Behnel's avatar Stefan Behnel

Raise a more appropriate ImportError rather than a generic RuntimeError when...

Raise a more appropriate ImportError rather than a generic RuntimeError when trying to re-import a Cython module in a different subinterpreter with PEP-489.
parent 57f3dc82
......@@ -925,7 +925,7 @@ static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
{
PyErr_SetString(
PyExc_RuntimeError, "Interpreter change detected - this module does not support subinterpreters.");
PyExc_ImportError, "Interpreter change detected - this module does not support subinterpreters.");
return -1;
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment