diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-15 20:49:17 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-15 20:49:17 (GMT) |
commit | 575596e19a8f0be382f08a2dc9190100ff811b97 (patch) | |
tree | 8feb8a62fd913bb95032674b17396aa9c82e228c | |
parent | e8a257cdb157f8ab6bc707b3bc618d5c85d36b73 (diff) | |
download | cpython-575596e19a8f0be382f08a2dc9190100ff811b97.zip cpython-575596e19a8f0be382f08a2dc9190100ff811b97.tar.gz cpython-575596e19a8f0be382f08a2dc9190100ff811b97.tar.bz2 |
test_ssl: skip tests when SNI is not available
-rw-r--r-- | Lib/test/test_ssl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 92dc31a..71e20ba 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") |