mirror of https://github.com/python/cpython
Fix ResourceWarning from subprocess pipe.
This commit is contained in:
parent
43ec577e2c
commit
994ad6c775
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue