Fix ResourceWarning from subprocess pipe.

This commit is contained in:
Brian Curtin 2010-11-05 15:38:47 +00:00
parent 43ec577e2c
commit 994ad6c775
1 changed files with 1 additions and 0 deletions

View File

@ -590,6 +590,7 @@ class PdbTestCase(unittest.TestCase):
stdin=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
self.addCleanup(proc.stdout.close)
stdout, stderr = proc.communicate(b'quit\n')
self.assertNotIn(b'SyntaxError', stdout,
"Got a syntax error running test script under PDB")