]> granicus.if.org Git - python/commitdiff
Issue #10860: Skip the new test if HTTPS is not available
authorPetri Lehtinen <petri@digip.org>
Wed, 26 Oct 2011 18:25:56 +0000 (21:25 +0300)
committerPetri Lehtinen <petri@digip.org>
Wed, 26 Oct 2011 18:25:56 +0000 (21:25 +0300)
Lib/test/test_httplib.py

index dbc1c7f492a6d6e7b3a17b771023a08dd940060e..38c0d2db0ede8d6f2b217ce9341f97115585b0db 100644 (file)
@@ -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