From: Petri Lehtinen Date: Wed, 26 Oct 2011 18:25:56 +0000 (+0300) Subject: Issue #10860: Skip the new test if HTTPS is not available X-Git-Tag: v2.7.3rc1~373 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d089df1b80f2f9054db003499a6948a6774b96e;p=python Issue #10860: Skip the new test if HTTPS is not available --- 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