[Python-checkins] cpython: test_ssl: skip tests when SNI is not available
christian.heimes
python-checkins at python.org
Sun Dec 15 21:49:26 CET 2013
http://hg.python.org/cpython/rev/629852f6d186
changeset: 87972:629852f6d186
user: Christian Heimes <christian at cheimes.de>
date: Sun Dec 15 21:49:17 2013 +0100
summary:
test_ssl: skip tests when SNI is not available
files:
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
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -1419,6 +1419,7 @@
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 @@
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")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list