mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix ResourceWarning from subprocess pipe.
This commit is contained in:
parent
43ec577e2c
commit
994ad6c775
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue