[Python-checkins] cpython (3.2): Issue #10860: Skip the new test if HTTPS is not available

petri.lehtinen python-checkins at python.org
Wed Oct 26 20:30:58 CEST 2011


http://hg.python.org/cpython/rev/a3939c2f6727
changeset:   73136:a3939c2f6727
branch:      3.2
parent:      73122:03ef6108beae
user:        Petri Lehtinen <petri at digip.org>
date:        Wed Oct 26 21:29:15 2011 +0300
summary:
  Issue #10860: Skip the new test if HTTPS is not available

files:
  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
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -541,6 +541,8 @@
         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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list