mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix test_ssl after r87849
This commit is contained in:
parent
67b212e608
commit
160fd938ed
2 changed files with 128 additions and 32 deletions
|
@ -602,7 +602,7 @@ class NetworkedTests(unittest.TestCase):
|
|||
# https://sha2.hboeck.de/ was used until 2011-01-08 (no route to host)
|
||||
remote = ("sha256.tbs-internet.com", 443)
|
||||
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),
|
||||
cert_reqs=ssl.CERT_REQUIRED,
|
||||
ca_certs=sha256_cert,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue