From 7724b364aad3215093be6ebd593fd00333a504cb Mon Sep 17 00:00:00 2001 From: Arthur Hamon Date: Thu, 13 Jun 2019 15:21:44 +0200 Subject: [PATCH] urllib3 has a new default behavior with PoolManager object creation By default, from version urllib3=>1.25, urllib3 requires and validates certificates by default when using HTTPS (https://github.com/urllib3/urllib3/blob/master/CHANGES.rst#125-2019-04-22). Set explicitly that we deactivate certificates validation with cert_reqs=`CERT_NONE`. --- tests/integration/test_urllib3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_urllib3.py b/tests/integration/test_urllib3.py index d187f7b..6d4a93c 100644 --- a/tests/integration/test_urllib3.py +++ b/tests/integration/test_urllib3.py @@ -20,7 +20,7 @@ def verify_pool_mgr(): @pytest.fixture(scope='module') def pool_mgr(): - return urllib3.PoolManager() + return urllib3.PoolManager(cert_reqs='CERT_NONE') def test_status_code(httpbin_both, tmpdir, verify_pool_mgr):