diff --git a/tests/test-http-bundle1.t b/tests/test-http-bundle1.t --- a/tests/test-http-bundle1.t +++ b/tests/test-http-bundle1.t @@ -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 --git a/tests/test-http.t b/tests/test-http.t --- a/tests/test-http.t +++ b/tests/test-http.t @@ -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 --git a/tests/test-largefiles-wireproto.t b/tests/test-largefiles-wireproto.t --- a/tests/test-largefiles-wireproto.t +++ b/tests/test-largefiles-wireproto.t @@ -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