summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pdb.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:38:47 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-05 15:38:47 (GMT)
commit994ad6c775b66073e296901aa178e27aa120bb99 (patch)
treecb1cc09ca7782e9d81925c464da9302e94ef9a4a /Lib/test/test_pdb.py
parent43ec577e2c2d630fc38a1e7ebcc13d519f79085c (diff)
downloadcpython-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.py1
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")