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:
Brian Curtin 2010-11-01 14:08:58 +00:00
parent 9e2fadcbdd
commit 8581c7e11a
1 changed files with 1 additions and 0 deletions

View File

@ -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)