]> 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:29:54 +0000 (21:29 +0300)
committerPetri Lehtinen <petri@digip.org>
Wed, 26 Oct 2011 18:29:54 +0000 (21:29 +0300)
1  2 
Lib/test/test_httplib.py

index ba97da208b11af6729023a5e0c0f2313ef98ec24,ff033215b34795f7794ec72ff365e70287b60a6a..a10c09dddcf829d1c31d3e15d8a0d47c0601e3d3
@@@ -539,8 -540,9 +539,10 @@@ class HTTPSTest(TestCase)
          h.request('GET', '/nonexistent')
          resp = h.getresponse()
          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