summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-17 02:39:37 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-17 02:39:37 (GMT)
commit00ac0d22f3ce3b439bc93e7474a6e097e89ed94d (patch)
treedd70d4589ec385a2b48fa4c6e045ff239b4f6f6d /Lib/test
parentc859b5c04e57fe429ff11879bf4b8b91d0cd9bdc (diff)
downloadcpython-00ac0d22f3ce3b439bc93e7474a6e097e89ed94d.zip
cpython-00ac0d22f3ce3b439bc93e7474a6e097e89ed94d.tar.gz
cpython-00ac0d22f3ce3b439bc93e7474a6e097e89ed94d.tar.bz2
Try to stop the test from leaking and yet still work on windows
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_cmd_line.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index dd27b51..3fa7930 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -6,12 +6,11 @@ import subprocess
class CmdLineTest(unittest.TestCase):
def start_python(self, cmd_line):
- inst = popen2.Popen4('%s %s' % (sys.executable, cmd_line))
- outfp, infp = inst.fromchild, inst.tochild
+ outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
infp.close()
data = outfp.read()
outfp.close()
- inst.wait()
+ popen2._cleanup()
return data
def exit_code(self, cmd_line):