diff options
| author | Petri Lehtinen <petri@digip.org> | 2011-10-26 21:25:56 +0300 |
|---|---|---|
| committer | Petri Lehtinen <petri@digip.org> | 2011-10-26 21:25:56 +0300 |
| commit | 6d089df1b80f2f9054db003499a6948a6774b96e (patch) | |
| tree | 8f22c0c49f75262bb7688b8730b244d3f7c5a142 | |
| parent | 63c54e819ec58235f266b0a33f90f484f8694eca (diff) | |
| download | cpython-git-6d089df1b80f2f9054db003499a6948a6774b96e.tar.gz | |
Issue #10860: Skip the new test if HTTPS is not available
| -rw-r--r-- | Lib/test/test_httplib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index dbc1c7f492..38c0d2db0e 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -441,6 +441,7 @@ class HTTPSTimeoutTest(TestCase): 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 |
