Kaydet (Commit) cc969564 authored tarafından Petri Lehtinen's avatar Petri Lehtinen

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

...@@ -541,6 +541,8 @@ class HTTPSTest(TestCase): ...@@ -541,6 +541,8 @@ class HTTPSTest(TestCase):
self.assertEqual(resp.status, 404) self.assertEqual(resp.status, 404)
del server del server
@unittest.skipIf(not hasattr(client, 'HTTPSConnection'),
'http.client.HTTPSConnection not available')
def test_host_port(self): def test_host_port(self):
# Check invalid host_port # 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