mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #10860: Skip the new test if HTTPS is not available
This commit is contained in:
parent
fbb39815d4
commit
e119c403a1
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue