]> granicus.if.org Git - python/commit
test_threading: use Popen.communicate() instead of .wait()
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 5 Jan 2011 03:54:28 +0000 (03:54 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 5 Jan 2011 03:54:28 +0000 (03:54 +0000)
commitc932b65428b4995bc53609ed361fddf382882ee5
treee2cac3eff5a4c6fb3f3a57ec3f7c2fb174d64160
parent4b2b43d9889b498c1dc71b8a2bef8cfea45f410c
test_threading: use Popen.communicate() instead of .wait()

Popen.communicate() avoids deadlocks and close the pipes when done. This commit
fixes a ResourceWarning(unclosed pipe).
Lib/test/test_threading.py