diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-11-01 14:08:58 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-11-01 14:08:58 (GMT) |
commit | 8581c7e11a2e38c076fc3d96f30fce394ff1ce69 (patch) | |
tree | 3531668726d2b767fea351435939a6f4d175b0ce /Lib/test/test_cmd_line.py | |
parent | 9e2fadcbddbb0de515fc8c920c5de9181d6f604b (diff) | |
download | cpython-8581c7e11a2e38c076fc3d96f30fce394ff1ce69.zip cpython-8581c7e11a2e38c076fc3d96f30fce394ff1ce69.tar.gz cpython-8581c7e11a2e38c076fc3d96f30fce394ff1ce69.tar.bz2 |
Merged revisions 86081 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86081 | brian.curtin | 2010-11-01 09:00:33 -0500 (Mon, 01 Nov 2010) | 2 lines
Close subprocess pipes to clear ResourceWarning messages in debug mode.
........
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 5143ed7..c4b8be5 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -186,6 +186,7 @@ sys.stdout.buffer.write(path)""" code = '; '.join(code) p = _spawn_python('-S', '-c', code) stdout, _ = p.communicate() + p.stdout.close() self.assertTrue(path1.encode('ascii') in stdout) self.assertTrue(path2.encode('ascii') in stdout) |