mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Make sys.path and sys.argv into lists of strings.
Remove the hack in test_popen.py to overcome this issue.
This commit is contained in:
parent
aa588c4699
commit
96ca6916b4
2 changed files with 7 additions and 7 deletions
|
@ -20,7 +20,7 @@ if ' ' in python:
|
|||
class PopenTest(unittest.TestCase):
|
||||
|
||||
def _do_test_commandline(self, cmdline, expected):
|
||||
cmd = '%s -c "import sys; print(list(map(str, sys.argv)))" %s'
|
||||
cmd = '%s -c "import sys; print(sys.argv)" %s'
|
||||
cmd = cmd % (python, cmdline)
|
||||
data = os.popen(cmd).read()
|
||||
got = eval(data)[1:] # strip off argv[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue