summaryrefslogtreecommitdiff
path: root/python2
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2011-08-09 09:13:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2011-08-09 09:13:34 -0400
commitcee15da22eb59552d14671b426105e0512ce8ff7 (patch)
tree8fbddb6d45b0f09cabf104edfb97a625b15ba626 /python2
parent88c1f28718f3b66b46f04c406be761c51e69075f (diff)
downloadhttplib2-cee15da22eb59552d14671b426105e0512ce8ff7.tar.gz
Fixed failing test case when IPv6 HTTPS server is present
Diffstat (limited to 'python2')
-rwxr-xr-xpython2/httplib2test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python2/httplib2test.py b/python2/httplib2test.py
index 2a8df75..6e28e5a 100755
--- a/python2/httplib2test.py
+++ b/python2/httplib2test.py
@@ -172,6 +172,10 @@ class HttpTest(unittest.TestCase):
self.http.request("https://[::1]/")
except socket.gaierror:
self.fail("should get the address family right for IPv6")
+ except httplib2.CertificateHostnameMismatch:
+ # We connected and verified that the certificate doesn't match
+ # the name. Good enough.
+ pass
except socket.error:
# Even if IPv6 isn't installed on a machine it should just raise socket.error
pass