[Python-checkins] Fix warning in _testembed.c (GH-13533)

Pablo Galindo webhook-mailer at python.org
Thu May 23 19:53:26 EDT 2019


https://github.com/python/cpython/commit/cccc11b38e5409861f4db345a4dd45dcc9ba470c
commit: cccc11b38e5409861f4db345a4dd45dcc9ba470c
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-05-24T00:53:21+01:00
summary:

Fix warning in _testembed.c (GH-13533)

files:
M Programs/_testembed.c

diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 21d3b445d775..de1c5877f0f5 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -1231,15 +1231,13 @@ static int _audit_subinterpreter_hook(const char *event, PyObject *args, void *u
 
 static int test_audit_subinterpreter(void)
 {
-    PyThreadState *ts;
-
     Py_IgnoreEnvironmentFlag = 0;
     PySys_AddAuditHook(_audit_subinterpreter_hook, NULL);
     _testembed_Py_Initialize();
 
-    ts = Py_NewInterpreter();
-    ts = Py_NewInterpreter();
-    ts = Py_NewInterpreter();
+    Py_NewInterpreter();
+    Py_NewInterpreter();
+    Py_NewInterpreter();
 
     Py_Finalize();
 



More information about the Python-checkins mailing list