From e119c403a12d2a04e894a7e61c8693084e2b21c8 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Wed, 26 Oct 2011 21:29:15 +0300 Subject: [PATCH] Issue #10860: Skip the new test if HTTPS is not available --- Lib/test/test_httplib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 8a328a9882e..ff033215b34 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -541,6 +541,8 @@ class HTTPSTest(TestCase): resp = h.getresponse() self.assertEqual(resp.status, 404) + @unittest.skipIf(not hasattr(client, 'HTTPSConnection'), + 'http.client.HTTPSConnection not available') def test_host_port(self): # Check invalid host_port