[Python-checkins] r45474 - python/trunk/Lib/test/test_cmd_line.py

neal.norwitz python-checkins at python.org
Mon Apr 17 04:39:38 CEST 2006


Author: neal.norwitz
Date: Mon Apr 17 04:39:37 2006
New Revision: 45474

Modified:
   python/trunk/Lib/test/test_cmd_line.py
Log:
Try to stop the test from leaking and yet still work on windows

Modified: python/trunk/Lib/test/test_cmd_line.py
==============================================================================
--- python/trunk/Lib/test/test_cmd_line.py	(original)
+++ python/trunk/Lib/test/test_cmd_line.py	Mon Apr 17 04:39:37 2006
@@ -6,12 +6,11 @@
 
 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):


More information about the Python-checkins mailing list