summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:38:47 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:38:47 +0000
commit994ad6c775b66073e296901aa178e27aa120bb99 (patch)
treecb1cc09ca7782e9d81925c464da9302e94ef9a4a
parent43ec577e2c2d630fc38a1e7ebcc13d519f79085c (diff)
downloadcpython-git-994ad6c775b66073e296901aa178e27aa120bb99.tar.gz
Fix ResourceWarning from subprocess pipe.
-rw-r--r--Lib/test/test_pdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 90bf6425cb..0d93b43e84 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")