From: Christian Heimes Date: Sun, 15 Dec 2013 20:49:17 +0000 (+0100) Subject: test_ssl: skip tests when SNI is not available X-Git-Tag: v3.4.0b2~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=575596e19a8f0be382f08a2dc9190100ff811b97;p=python test_ssl: skip tests when SNI is not available --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 92dc31afa9..71e20babd3 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1419,6 +1419,7 @@ class NetworkedTests(unittest.TestCase): s.close() self.assertEqual(len(ctx.get_ca_certs()), 1) + @needs_sni def test_context_setget(self): # Check that the context of a connected socket can be replaced. with support.transient_internet("svn.python.org"): @@ -1970,6 +1971,7 @@ else: cert = s.getpeercert() self.assertTrue(cert, "Can't get peer certificate.") + @needs_sni def test_check_hostname(self): if support.verbose: sys.stdout.write("\n")