]> granicus.if.org Git - python/commit
[3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Oct 2017 14:10:59 +0000 (07:10 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 5 Oct 2017 14:10:59 +0000 (07:10 -0700)
commitfae0512e58619231a566bf77aa21148440b0ec8d
treee4b5c142543f2538a35cdd74f8054be32f011f27
parentde5427a8f7ce15565d13383bc8d279bb07dda1cb
[3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)

Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
(cherry picked from commit 11045c9d8a21dd9bd182a3939189db02815f9783)
Lib/test/test_subprocess.py