Test for posix compliance by checking posix compliance

This commit is contained in:
Dan Ryan
2017-09-16 00:24:04 -04:00
parent ec384b300b
commit c863cd7426
+1 -1
View File
@@ -40,7 +40,7 @@ class PopenSpawn(SpawnBase):
kwargs['creationflags'] = subprocess.CREATE_NEW_PROCESS_GROUP
if not isinstance(cmd, (list, tuple)):
cmd = shlex.split(cmd, posix=sys.platform != 'win32')
cmd = shlex.split(cmd, posix=(os.name == 'posix'))
self.proc = subprocess.Popen(cmd, **kwargs)
self.closed = False