mirror of
https://github.com/python/cpython.git
synced 2025-08-17 15:21:26 +00:00
Merged revisions 86198 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86198 | brian.curtin | 2010-11-05 10:17:11 -0500 (Fri, 05 Nov 2010) | 2 lines Close subprocess pipes in _kill. Fixes a number of ResourceWarnings. ........
This commit is contained in:
parent
dbf8e839cf
commit
f4f0c8be3d
1 changed files with 3 additions and 0 deletions
|
@ -709,6 +709,9 @@ class Win32KillTests(unittest.TestCase):
|
|||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
stdin=subprocess.PIPE)
|
||||
self.addCleanup(proc.stdout.close)
|
||||
self.addCleanup(proc.stderr.close)
|
||||
self.addCleanup(proc.stdin.close)
|
||||
|
||||
count, max = 0, 100
|
||||
while count < max and proc.poll() is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue