Commit e119c403 authored by Petri Lehtinen's avatar Petri Lehtinen

Issue #10860: Skip the new test if HTTPS is not available

parent fbb39815
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment