summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r--Lib/test/test_cmd_line.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index 0ddc813..e8f8c9d 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -231,6 +231,7 @@ sys.stdout.buffer.write(path)"""
code = '; '.join(code)
p = _spawn_python_with_env('-S', '-c', code)
stdout, _ = p.communicate()
+ p.stdout.close()
self.assertIn(path1.encode('ascii'), stdout)
self.assertIn(path2.encode('ascii'), stdout)