mirror of https://github.com/python/cpython
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
|
@ -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…
Reference in New Issue