From: Petri Lehtinen Date: Wed, 26 Oct 2011 18:29:54 +0000 (+0300) Subject: Issue #10860: Skip the new test if HTTPS is not available X-Git-Tag: v3.3.0a1~1057 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc9695643fc40780f51719d5e9a272283a743077;p=thirdparty%2FPython%2Fcpython.git Issue #10860: Skip the new test if HTTPS is not available --- cc9695643fc40780f51719d5e9a272283a743077 diff --cc Lib/test/test_httplib.py index ba97da208b11,ff033215b347..a10c09dddcf8 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@@ -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