Issue #10860: Skip the new test if HTTPS is not available

This commit is contained in:
Petri Lehtinen 2011-10-26 21:25:56 +03:00
parent 63c54e819e
commit 6d089df1b8

View file

@ -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