diff options
author | Petri Lehtinen <petri@digip.org> | 2011-10-26 18:29:15 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2011-10-26 18:29:15 (GMT) |
commit | e119c403a12d2a04e894a7e61c8693084e2b21c8 (patch) | |
tree | 9b049d54690a99e265f565dfe59f8d9a8c1450cb /Lib | |
parent | fbb39815d423db0d9f413a753aa5e168ee83fe1d (diff) | |
download | cpython-e119c403a12d2a04e894a7e61c8693084e2b21c8.zip cpython-e119c403a12d2a04e894a7e61c8693084e2b21c8.tar.gz cpython-e119c403a12d2a04e894a7e61c8693084e2b21c8.tar.bz2 |
Issue #10860: Skip the new test if HTTPS is not available
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_httplib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 8a328a9..ff03321 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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 |