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 ba97da2..a10c09d 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -541,6 +541,8 @@
         self.assertEqual(resp.status, 404)
         del server
 
+    @unittest.skipIf(not hasattr(client, 'HTTPSConnection'),
+                     'http.client.HTTPSConnection not available')
     def test_host_port(self):
         # Check invalid host_port