--- 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: