1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

httplib2 has issues validating certificate with python 2.7, disabling it

This commit is contained in:
Arthur Hamon
2019-06-13 15:21:02 +02:00
parent a53121b645
commit c4803dbc4d

View File

@@ -22,7 +22,7 @@ def http():
kwargs = {
'ca_certs': pytest_httpbin.certs.where()
}
if sys.version_info[:2] == (3, 7):
if sys.version_info[:2] in [(2, 7), (3, 7)]:
kwargs['disable_ssl_certificate_validation'] = True
return httplib2.Http(**kwargs)