From: Benjamin Peterson Date: Fri, 15 Jan 2010 02:26:07 +0000 (+0000) Subject: try to fix for windows X-Git-Tag: v2.7a3~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=667dc19130445c084109333473194cbd76f4831a;p=thirdparty%2FPython%2Fcpython.git try to fix for windows --- diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 95f6d209763f..816b9d1570ac 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -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)