]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
try to fix for windows
authorBenjamin Peterson <benjamin@python.org>
Fri, 15 Jan 2010 02:26:07 +0000 (02:26 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 15 Jan 2010 02:26:07 +0000 (02:26 +0000)
Lib/test/test_popen.py

index 95f6d209763fe138bf6815c00719630b1f9e3b52..816b9d1570acf2ec7c7ac60521a55b2a636e3cef 100644 (file)
@@ -18,7 +18,7 @@ python = sys.executable
 class PopenTest(unittest.TestCase):
     def _do_test_commandline(self, cmdline, expected):
         cmd = '"%s" -c "import sys;print sys.argv" %s' % (python, cmdline)
-        data = os.popen(cmd).read()
+        data = os.popen(cmd).read() + '\n'
         got = eval(data)[1:] # strip off argv[0]
         self.assertEqual(got, expected)