Debugger can't find tox tests, however Run does well (PY-19086)

Do not quote new process arguments on windows without need
This commit is contained in:
Elizaveta Shashkova
2016-04-15 15:58:33 +03:00
parent 56d9089a6a
commit 088e1bcb4f
@@ -167,8 +167,11 @@ def args_to_str(args):
if x.startswith('"') and x.endswith('"'):
quoted_args.append(x)
else:
x = x.replace('"', '\\"')
quoted_args.append('"%s"' % x)
if ' ' in x:
x = x.replace('"', '\\"')
quoted_args.append('"%s"' % x)
else:
quoted_args.append(x)
return ' '.join(quoted_args)