Fix issue 193 - test case fails when IPv6 HTTPS server is present (issue 5437109)

2 views
Skip to first unread message

jar...@jaraco.com

unread,
Dec 1, 2011, 7:00:49 PM12/1/11
to joe.gr...@gmail.com, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: jcgregorio,

Please review this at http://codereview.appspot.com/5437109/

Affected files:
M python2/httplib2test.py


Index: python2/httplib2test.py
===================================================================
--- a/python2/httplib2test.py
+++ b/python2/httplib2test.py
@@ -172,6 +172,10 @@
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


Reply all
Reply to author
Forward
0 new messages