try to fix for windows

This commit is contained in:
Benjamin Peterson 2010-01-15 02:26:07 +00:00
parent 0bc77474aa
commit 667dc19130
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ python = sys.executable
class PopenTest(unittest.TestCase): class PopenTest(unittest.TestCase):
def _do_test_commandline(self, cmdline, expected): def _do_test_commandline(self, cmdline, expected):
cmd = '"%s" -c "import sys;print sys.argv" %s' % (python, cmdline) 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] got = eval(data)[1:] # strip off argv[0]
self.assertEqual(got, expected) self.assertEqual(got, expected)