summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-10-26 21:25:56 +0300
committerPetri Lehtinen <petri@digip.org>2011-10-26 21:25:56 +0300
commit6d089df1b80f2f9054db003499a6948a6774b96e (patch)
tree8f22c0c49f75262bb7688b8730b244d3f7c5a142
parent63c54e819ec58235f266b0a33f90f484f8694eca (diff)
downloadcpython-git-6d089df1b80f2f9054db003499a6948a6774b96e.tar.gz
Issue #10860: Skip the new test if HTTPS is not available
-rw-r--r--Lib/test/test_httplib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index dbc1c7f492..38c0d2db0e 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -441,6 +441,7 @@ class HTTPSTimeoutTest(TestCase):
h = httplib.HTTPSConnection(HOST, TimeoutTest.PORT, timeout=30)
self.assertEqual(h.timeout, 30)
+ @unittest.skipIf(not hasattr(httplib, 'HTTPS'), 'httplib.HTTPS not available')
def test_host_port(self):
# Check invalid host_port