Skip to content
Myr

Fix tests for new urllib3 exception text.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 72d69d7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_requests.py+1 added-1 removed
1869 unmodified lines
18701871 @pytest.mark.parametrize(1872 'timeout, error_text', (1873 ((3, 4, 5), '(connect, read)'),1874 ('foo', 'must be an int or float'),1874 ('foo', 'must be an int, float or None'),1875 ))1876 def test_invalid_timeout(self, httpbin, timeout, error_text):1877 with pytest.raises(ValueError) as e:1878 requests.get(httpbin('get'), timeout=timeout)
257 unmodified lines