diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-11-05 15:38:47 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-11-05 15:38:47 (GMT) |
commit | 994ad6c775b66073e296901aa178e27aa120bb99 (patch) | |
tree | cb1cc09ca7782e9d81925c464da9302e94ef9a4a /Lib/test/test_pdb.py | |
parent | 43ec577e2c2d630fc38a1e7ebcc13d519f79085c (diff) | |
download | cpython-994ad6c775b66073e296901aa178e27aa120bb99.zip cpython-994ad6c775b66073e296901aa178e27aa120bb99.tar.gz cpython-994ad6c775b66073e296901aa178e27aa120bb99.tar.bz2 |
Fix ResourceWarning from subprocess pipe.
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r-- | Lib/test/test_pdb.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 90bf642..0d93b43 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -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") |