Merge pull request #570 from techalchemy/pexpect-posix-check-fix

Test for posix compliance by checking posix compliance
This commit is contained in:
2017-09-16 11:33:37 -04:00
committed by GitHub
+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