Commit 160fd938 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix test_ssl after r87849

parent 67b212e6
This diff is collapsed.
...@@ -602,7 +602,7 @@ class NetworkedTests(unittest.TestCase): ...@@ -602,7 +602,7 @@ class NetworkedTests(unittest.TestCase):
# https://sha2.hboeck.de/ was used until 2011-01-08 (no route to host) # https://sha2.hboeck.de/ was used until 2011-01-08 (no route to host)
remote = ("sha256.tbs-internet.com", 443) remote = ("sha256.tbs-internet.com", 443)
sha256_cert = os.path.join(os.path.dirname(__file__), "sha256.pem") sha256_cert = os.path.join(os.path.dirname(__file__), "sha256.pem")
with support.transient_internet("sha2.hboeck.de"): with support.transient_internet("sha256.tbs-internet.com"):
s = ssl.wrap_socket(socket.socket(socket.AF_INET), s = ssl.wrap_socket(socket.socket(socket.AF_INET),
cert_reqs=ssl.CERT_REQUIRED, cert_reqs=ssl.CERT_REQUIRED,
ca_certs=sha256_cert,) ca_certs=sha256_cert,)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment