commit | 6d089df1b80f2f9054db003499a6948a6774b96e | [log] [tgz] |
---|---|---|
author | Petri Lehtinen <petri@digip.org> | Wed Oct 26 21:25:56 2011 +0300 |
committer | Petri Lehtinen <petri@digip.org> | Wed Oct 26 21:25:56 2011 +0300 |
tree | 8f22c0c49f75262bb7688b8730b244d3f7c5a142 | |
parent | 63c54e819ec58235f266b0a33f90f484f8694eca [diff] [blame] |
Issue #10860: Skip the new test if HTTPS is not available
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index dbc1c7f..38c0d2d 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py
@@ -441,6 +441,7 @@ h = httplib.HTTPSConnection(HOST, TimeoutTest.PORT, timeout=30) self.assertEqual(h.timeout, 30) + @unittest.skipIf(not hasattr(httplib, 'HTTPS'), 'httplib.HTTPS not available') def test_host_port(self): # Check invalid host_port