diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-11-05 15:31:20 +0000 |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-11-05 15:31:20 +0000 |
commit | f4f0c8be3dc401e5107f6c849b683769298d3f0c (patch) | |
tree | ec7b8a347c91c5a689c510fbe5cba54cbec235cc /Lib/test/test_os.py | |
parent | dbf8e839cf9b054ff30636ed033fa8125d1a4f0a (diff) | |
download | cpython-git-f4f0c8be3dc401e5107f6c849b683769298d3f0c.tar.gz |
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.
........
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index d68a97aba3..e83d785c0e 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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: |