]> granicus.if.org Git - python/commitdiff
Adds missing assert suppression.
authorSteve Dower <steve.dower@microsoft.com>
Mon, 12 Sep 2016 03:19:32 +0000 (20:19 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Mon, 12 Sep 2016 03:19:32 +0000 (20:19 -0700)
Modules/posixmodule.c

index ce646846dfbe83ae3e4813614fd6e3431b34cfd4..43e3c77cbb29727a0a96461d6d2a0bc1a1395e79 100644 (file)
@@ -5030,11 +5030,13 @@ os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv)
         mode = _P_OVERLAY;
 
     Py_BEGIN_ALLOW_THREADS
+    _Py_BEGIN_SUPPRESS_IPH
 #ifdef HAVE_WSPAWNV
     spawnval = _wspawnv(mode, path->wide, argvlist);
 #else
     spawnval = _spawnv(mode, path->narrow, argvlist);
 #endif
+    _Py_END_SUPPRESS_IPH
     Py_END_ALLOW_THREADS
 
     free_string_array(argvlist, argc);
@@ -5122,11 +5124,13 @@ os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
         mode = _P_OVERLAY;
 
     Py_BEGIN_ALLOW_THREADS
+    _Py_BEGIN_SUPPRESS_IPH
 #ifdef HAVE_WSPAWNV
     spawnval = _wspawnve(mode, path->wide, argvlist, envlist);
 #else
     spawnval = _spawnve(mode, path->narrow, argvlist, envlist);
 #endif
+    _Py_END_SUPPRESS_IPH
     Py_END_ALLOW_THREADS
 
     if (spawnval == -1)