# HG changeset patch # User Pierre-Yves David # Date 2021-07-28 12:55:06 # Node ID fb8389f227a02c9facb3dc93967ffc3c78c8e7d4 # Parent a8deb9dc39daf45dac5ac1ae1adea018c87f8e99 dummyssh: make sure we don't inherit files descriptor to the children This is one of the difference between python2 and python3 and could have been a reason why test hang with python2 + chg. This does not seems to help the hanging issue at all… However, now that this is written lets reduce the difference between python2 and python3. Differential Revision: https://phab.mercurial-scm.org/D11225 diff --git a/tests/dummyssh b/tests/dummyssh --- a/tests/dummyssh +++ b/tests/dummyssh @@ -31,5 +31,5 @@ if os.name == 'nt': hgcmd = shlex.join(cmds) # shlex generate windows incompatible string... hgcmd = hgcmd.replace("'", '"') -r = subprocess.call(hgcmd, shell=True) +r = subprocess.call(hgcmd, shell=True, close_fds=True) sys.exit(bool(r))