New submission from Jason Haslam :
The failure cleanup of `Py_NewInterpreter` causes a bogus fatal error on the
call to `PyThreadState_Delete`. The error is about deleting the current thread
state. The saved thread state should be swapped back in *before* deleting the
new thread state
Jason Haslam added the comment:
FWIW, I believe that you have to call `PyErr_NormalizeException` on the values
returned from `PyErr_Fetch`. It looks like this is working as expected.
--
nosy: +jason.haslam
___
Python tracker
<ht