summaryrefslogtreecommitdiff
path: root/Lib/test/script_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/script_helper.py')
-rw-r--r--Lib/test/script_helper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/script_helper.py b/Lib/test/script_helper.py
index f40a676c7a..4cadcf7196 100644
--- a/Lib/test/script_helper.py
+++ b/Lib/test/script_helper.py
@@ -24,6 +24,8 @@ def _assert_python(expected_success, *args):
out, err = p.communicate()
finally:
subprocess._cleanup()
+ p.stdout.close()
+ p.stderr.close()
rc = p.returncode
if (rc and expected_success) or (not rc and not expected_success):
raise AssertionError(