summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-10-26 18:29:54 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-10-26 18:29:54 (GMT)
commitcc9695643fc40780f51719d5e9a272283a743077 (patch)
tree487cc3946dacaa25a538bb4f860d6508823e72da /Lib/test/test_httplib.py
parentb9e46e95f8b0b85fc97e119c008bae32f585c405 (diff)
parente119c403a12d2a04e894a7e61c8693084e2b21c8 (diff)
downloadcpython-cc9695643fc40780f51719d5e9a272283a743077.zip
cpython-cc9695643fc40780f51719d5e9a272283a743077.tar.gz
cpython-cc9695643fc40780f51719d5e9a272283a743077.tar.bz2
Issue #10860: Skip the new test if HTTPS is not available
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index ba97da2..a10c09d 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -541,6 +541,8 @@ class HTTPSTest(TestCase):
self.assertEqual(resp.status, 404)
del server
+ @unittest.skipIf(not hasattr(client, 'HTTPSConnection'),
+ 'http.client.HTTPSConnection not available')
def test_host_port(self):
# Check invalid host_port