try to fix for windows
This commit is contained in:
parent
0bc77474aa
commit
667dc19130
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue