# HG changeset patch # User Matt Harbison # Date 1621534839 14400 # Node ID 5ac0f2a8ba7205266a206ad8da89a79173e8efea # Parent c8f62920f07a40af3403ba9aefa1dac8a97d53ea tests: monkeypatch `util.get_password()` to avoid deadlocks on Windows This should have been part of 5b3513177f2b. Differential Revision: https://phab.mercurial-scm.org/D10759 diff -r c8f62920f07a -r 5ac0f2a8ba72 tests/test-http-bundle1.t --- a/tests/test-http-bundle1.t Tue May 04 10:46:50 2021 +0200 +++ b/tests/test-http-bundle1.t Thu May 20 14:20:39 2021 -0400 @@ -192,10 +192,10 @@ $ cat pid >> $DAEMON_PIDS $ cat << EOF > get_pass.py - > import getpass - > def newgetpass(arg): + > from mercurial import util + > def newgetpass(): > return "pass" - > getpass.getpass = newgetpass + > util.get_password = newgetpass > EOF $ hg id http://localhost:$HGPORT2/ diff -r c8f62920f07a -r 5ac0f2a8ba72 tests/test-http.t --- a/tests/test-http.t Tue May 04 10:46:50 2021 +0200 +++ b/tests/test-http.t Thu May 20 14:20:39 2021 -0400 @@ -181,10 +181,10 @@ $ cat pid >> $DAEMON_PIDS $ cat << EOF > get_pass.py - > import getpass - > def newgetpass(arg): + > from mercurial import util + > def newgetpass(): > return "pass" - > getpass.getpass = newgetpass + > util.get_password = newgetpass > EOF $ hg id http://localhost:$HGPORT2/ diff -r c8f62920f07a -r 5ac0f2a8ba72 tests/test-largefiles-wireproto.t --- a/tests/test-largefiles-wireproto.t Tue May 04 10:46:50 2021 +0200 +++ b/tests/test-largefiles-wireproto.t Thu May 20 14:20:39 2021 -0400 @@ -425,10 +425,10 @@ > -d -p $HGPORT --pid-file hg.pid -A access.log $ cat hg.pid >> $DAEMON_PIDS $ cat << EOF > get_pass.py - > import getpass - > def newgetpass(arg): + > from mercurial import util + > def newgetpass(): > return "pass" - > getpass.getpass = newgetpass + > util.get_password = newgetpass > EOF $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \ > http://user@localhost:$HGPORT credentialclone