diff tests/test-http.t @ 47318:5ac0f2a8ba72 stable

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
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 20 May 2021 14:20:39 -0400
parents 3f87d2af0bd6
children d9017df70135
line wrap: on
line diff
--- 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/