Backout changeset 46393019b650

test_capi is failing and the fix is not trivial, I prefer to revert
This commit is contained in:
Victor Stinner 2013-12-13 04:14:41 +01:00
parent 775632ba10
commit 441adb8c57
7 changed files with 30 additions and 24 deletions

View file

@ -2511,10 +2511,6 @@ run_in_subinterp(PyObject *self, PyObject *args)
r = PyRun_SimpleString(code);
Py_EndInterpreter(substate);
/* restore previous thread safe. It was replaced by Py_NewInterpreter()
which creates a new thread state. */
_PyThreadState_Init(mainstate);
PyThreadState_Swap(mainstate);
return PyLong_FromLong(r);