summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_os.py3
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: