mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
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. ........
This commit is contained in:
parent
9e2fadcbdd
commit
8581c7e11a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue