]> granicus.if.org Git - python/commit
Issue #22290: Fix error handling in the _posixsubprocess module.
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 5 Oct 2014 15:25:19 +0000 (17:25 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 5 Oct 2014 15:25:19 +0000 (17:25 +0200)
commit8f437aac068e13fe8418bb0374baf4395e7b4994
tree498dcc48cfcc4e1472dadb9c1552188db929c3c1
parent340c749a3a091f14c7701b66a05e864c8f95740a
Issue #22290: Fix error handling in the _posixsubprocess module.

* Don't call the garbage collector with an exception set: it causes an
  assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
  failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
Lib/test/test_subprocess.py
Modules/_posixsubprocess.c