diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-23 23:53:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 23:53:21 (GMT) |
commit | cccc11b38e5409861f4db345a4dd45dcc9ba470c (patch) | |
tree | 5cd4f31e4c4d0db77bc452dfb6b326849d0d8e86 | |
parent | 608876b6b1eb59538e6c29671a733033fb8b5be7 (diff) | |
download | cpython-cccc11b38e5409861f4db345a4dd45dcc9ba470c.zip cpython-cccc11b38e5409861f4db345a4dd45dcc9ba470c.tar.gz cpython-cccc11b38e5409861f4db345a4dd45dcc9ba470c.tar.bz2 |
Fix warning in _testembed.c (GH-13533)
-rw-r--r-- | Programs/_testembed.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 21d3b44..de1c587 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(); |