commit | 43ec577e2c2d630fc38a1e7ebcc13d519f79085c | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Fri Nov 05 15:17:11 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Fri Nov 05 15:17:11 2010 +0000 |
tree | a974cfa1b59a6b18191a975a0b8993039461e099 | |
parent | cbad4df179456a7e4116d29358445e352c3a3d56 [diff] |
Close subprocess pipes in _kill. Fixes a number of ResourceWarnings.
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index b67eed5..c7cf24b 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py
@@ -1006,6 +1006,9 @@ 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: