]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix ProcessTestCasePOSIXPurePython to test the module from import when
authorGregory P. Smith <greg@krypto.org>
Sat, 28 May 2011 16:06:02 +0000 (09:06 -0700)
committerGregory P. Smith <greg@krypto.org>
Sat, 28 May 2011 16:06:02 +0000 (09:06 -0700)
commitc80504fb6954c8aabc97e79116fd93bb8d55a03c
treec4be7b00f95f3436b278c61867c8c2dec2bb13f7
parente4eed06dfa3d508235df147aaac44d0dad017e7a
Fix ProcessTestCasePOSIXPurePython to test the module from import when
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact.  This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.

Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore.  This at least
tests it properly in this stable branch.  The pure python code for
this is likely to be removed in 3.3.
Lib/test/test_subprocess.py