diff options
Diffstat (limited to 'python2/httplib2test.py')
| -rwxr-xr-x | python2/httplib2test.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python2/httplib2test.py b/python2/httplib2test.py index 6e28e5a..b2cbb02 100755 --- a/python2/httplib2test.py +++ b/python2/httplib2test.py @@ -497,14 +497,16 @@ class HttpTest(unittest.TestCase): self.fail('cert with *.*.appspot.com should not raise an exception.') def testSslHostnameValidation(self): - if sys.version_info >= (2, 6): + pass + # No longer a valid test. + #if sys.version_info >= (2, 6): # The SSL server at google.com:443 returns a certificate for # 'www.google.com', which results in a host name mismatch. # Note that this test only works because the ssl module and httplib2 # do not support SNI; for requests specifying a server name of # 'google.com' via SNI, a matching cert would be returned. - self.assertRaises(httplib2.CertificateHostnameMismatch, - self.http.request, "https://google.com/", "GET") + # self.assertRaises(httplib2.CertificateHostnameMismatch, + # self.http.request, "https://google.com/", "GET") def testSslCertValidationWithoutSslModuleFails(self): if sys.version_info < (2, 6): |
