Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e119c40

Browse files
committed
Issue #10860: Skip the new test if HTTPS is not available
1 parent fbb3981 commit e119c40

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_httplib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,8 @@ def test_local_bad_hostname(self):
541541
resp = h.getresponse()
542542
self.assertEqual(resp.status, 404)
543543

544+
@unittest.skipIf(not hasattr(client, 'HTTPSConnection'),
545+
'http.client.HTTPSConnection not available')
544546
def test_host_port(self):
545547
# Check invalid host_port
546548

0 commit comments

Comments
 (0)