From 6d089df1b80f2f9054db003499a6948a6774b96e Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Wed, 26 Oct 2011 21:25:56 +0300 Subject: [PATCH] Issue #10860: Skip the new test if HTTPS is not available --- Lib/test/test_httplib.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.0