1. Jason R. Coombs
  2. httplib2


Jason R. Coombs  committed 9e0fc5b

Fixed failing test case when IPv6 HTTPS server is present

Comments (0)

Files changed (1)

File python2/httplib2test.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         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