Skip to content

Commit

Permalink
Fix warning in _testembed.c (pythonGH-13533)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored and DinoV committed Jan 14, 2020
1 parent 82f04ef commit d3ae72e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d3ae72e

Please sign in to comment.