Fix the fork_exec() calls. tests pass.
This commit is contained in:
parent
6aad6e350e
commit
5f5d8001ef
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue