mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Backout changeset 46393019b650
test_capi is failing and the fix is not trivial, I prefer to revert
This commit is contained in:
parent
775632ba10
commit
441adb8c57
7 changed files with 30 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue