summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-10-26 18:25:56 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-10-26 18:25:56 (GMT)
commit6d089df1b80f2f9054db003499a6948a6774b96e (patch)
tree8f22c0c49f75262bb7688b8730b244d3f7c5a142 /Lib/test/test_httplib.py
parent63c54e819ec58235f266b0a33f90f484f8694eca (diff)
downloadcpython-6d089df1b80f2f9054db003499a6948a6774b96e.zip
cpython-6d089df1b80f2f9054db003499a6948a6774b96e.tar.gz
cpython-6d089df1b80f2f9054db003499a6948a6774b96e.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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index dbc1c7f..38c0d2d 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