From e2aafe6187deb26f7efcf6dd9ee751bb98a6b858 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 1 Nov 2019 10:42:26 +0000 Subject: [PATCH] Avoid test failures with SSL proxies Adds variables that do tell various libraries about custom CA used by SSL proxies. Avoids errors like: Could not fetch URL https://pypi.org/simple/mypy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mypy/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c: --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index d4c4fec..952ea29 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,10 @@ commands = coverage run -m pytest {posargs} coverage combine coverage report +passenv = + CURL_CA_BUNDLE + REQUESTS_CA_BUNDLE + SSL_CERT_FILE [testenv:venv] deps =