]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #10860: Skip the new test if HTTPS is not available
authorPetri Lehtinen <petri@digip.org>
Wed, 26 Oct 2011 18:29:15 +0000 (21:29 +0300)
committerPetri Lehtinen <petri@digip.org>
Wed, 26 Oct 2011 18:29:15 +0000 (21:29 +0300)
Lib/test/test_httplib.py

index 8a328a9882ef6cbf3e53e79e607728f9620d49ef..ff033215b34795f7794ec72ff365e70287b60a6a 100644 (file)
@@ -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