tests/hghave.py
changeset 30564 d83ca854fa21
parent 30450 de48d3a0573a
child 31422 aa797bd54f44
--- a/tests/hghave.py	Wed Nov 30 19:23:04 2016 +0000
+++ b/tests/hghave.py	Sat Oct 22 14:35:10 2016 +0900
@@ -449,7 +449,7 @@
 @check("defaultcacerts", "can verify SSL certs by system's CA certs store")
 def has_defaultcacerts():
     from mercurial import sslutil, ui as uimod
-    ui = uimod.ui()
+    ui = uimod.ui.load()
     return sslutil._defaultcacerts(ui) or sslutil._canloaddefaultcerts
 
 @check("defaultcacertsloaded", "detected presence of loaded system CA certs")
@@ -462,7 +462,7 @@
     if not has_sslcontext():
         return False
 
-    ui = uimod.ui()
+    ui = uimod.ui.load()
     cafile = sslutil._defaultcacerts(ui)
     ctx = ssl.create_default_context()
     if cafile: