summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-12-13 03:14:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-12-13 03:14:41 (GMT)
commit441adb8c5782de6fcf71ee3396d114c48cd1cb5b (patch)
treebdfac5137aa3cb90da5df29bd6bfd8345acd3adb /Modules/_testcapimodule.c
parent775632ba107fb37dfe2d38a39e129f1daad070cf (diff)
downloadcpython-441adb8c5782de6fcf71ee3396d114c48cd1cb5b.zip
cpython-441adb8c5782de6fcf71ee3396d114c48cd1cb5b.tar.gz
cpython-441adb8c5782de6fcf71ee3396d114c48cd1cb5b.tar.bz2
Backout changeset 46393019b650
test_capi is failing and the fix is not trivial, I prefer to revert
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 6f2a75c..a0cffde 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -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);