mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Skip test_algorithms (known remote hosts need SNI, which is only available on 3.2+)
This commit is contained in:
parent
d62da9d658
commit
c642f67c63
1 changed files with 2 additions and 1 deletions
|
@ -355,7 +355,8 @@ class NetworkedTests(unittest.TestCase):
|
||||||
# SHA256 was added in OpenSSL 0.9.8
|
# SHA256 was added in OpenSSL 0.9.8
|
||||||
if ssl.OPENSSL_VERSION_INFO < (0, 9, 8, 0, 15):
|
if ssl.OPENSSL_VERSION_INFO < (0, 9, 8, 0, 15):
|
||||||
self.skipTest("SHA256 not available on %r" % ssl.OPENSSL_VERSION)
|
self.skipTest("SHA256 not available on %r" % ssl.OPENSSL_VERSION)
|
||||||
# NOTE: https://sha256.tbs-internet.com is another possible test host
|
self.skipTest("remote host needs SNI, only available on Python 3.2+")
|
||||||
|
# NOTE: https://sha2.hboeck.de is another possible test 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 test_support.transient_internet("sha256.tbs-internet.com"):
|
with test_support.transient_internet("sha256.tbs-internet.com"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue