From 2d211d59a02accf250f50ddf8cf4dc2d5eeb16d7 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Tue, 15 Nov 2016 10:22:38 +0000 Subject: [PATCH] Fix tests for new urllib3 exception text. --- tests/test_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_requests.py b/tests/test_requests.py index 9f0da5cc..650ffc8b 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -1871,7 +1871,7 @@ class TestTimeout: @pytest.mark.parametrize( 'timeout, error_text', ( ((3, 4, 5), '(connect, read)'), - ('foo', 'must be an int or float'), + ('foo', 'must be an int, float or None'), )) def test_invalid_timeout(self, httpbin, timeout, error_text): with pytest.raises(ValueError) as e: