From: Petri Lehtinen Date: Wed, 26 Oct 2011 18:29:15 +0000 (+0300) Subject: Issue #10860: Skip the new test if HTTPS is not available X-Git-Tag: v3.2.3rc1~472 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e119c403a12d2a04e894a7e61c8693084e2b21c8;p=thirdparty%2FPython%2Fcpython.git 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 8a328a9882ef..ff033215b347 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