summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-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):