Fix the fork_exec() calls. tests pass.

This commit is contained in:
Gregory P. Smith 2020-12-24 20:50:19 -08:00
parent 6aad6e350e
commit 5f5d8001ef
2 changed files with 4 additions and 4 deletions

View File

@ -1778,8 +1778,8 @@ class Popen(object):
errread, errwrite,
errpipe_read, errpipe_write,
restore_signals, start_new_session,
gid, gids, uid, umask,
preexec_fn, setpgid)
setpgid, gid, gids, uid, umask,
preexec_fn)
self._child_created = True
finally:
# be sure the FD is closed no matter what

View File

@ -3105,7 +3105,7 @@ class POSIXProcessTestCase(BaseTestCase):
True, (), cwd, env_list,
-1, -1, -1, -1,
1, 2, 3, 4,
True, True,
True, True, 0,
False, [], 0, -1,
func)
# Attempt to prevent
@ -3154,7 +3154,7 @@ class POSIXProcessTestCase(BaseTestCase):
True, fds_to_keep, None, [b"env"],
-1, -1, -1, -1,
1, 2, 3, 4,
True, True,
True, True, 0,
None, None, None, -1,
None)
self.assertIn('fds_to_keep', str(c.exception))