--- a/tests/hghave.py Sat May 30 03:23:58 2020 +0200
+++ b/tests/hghave.py Sat May 30 05:27:53 2020 +0200
@@ -645,25 +645,11 @@
return False
-@check("sslcontext", "python >= 2.7.9 ssl")
-def has_sslcontext():
- try:
- import ssl
-
- ssl.SSLContext
- return True
- except (ImportError, AttributeError):
- return False
-
-
@check("defaultcacertsloaded", "detected presence of loaded system CA certs")
def has_defaultcacertsloaded():
import ssl
from mercurial import sslutil, ui as uimod
- if not has_sslcontext():
- return False
-
ui = uimod.ui.load()
cafile = sslutil._defaultcacerts(ui)
ctx = ssl.create_default_context()