(httpbin)
| 2712 | |
| 2713 | |
| 2714 | def test_urllib3_retries(httpbin): |
| 2715 | from urllib3.util import Retry |
| 2716 | |
| 2717 | s = requests.Session() |
| 2718 | s.mount("http://", HTTPAdapter(max_retries=Retry(total=2, status_forcelist=[500]))) |
| 2719 | |
| 2720 | with pytest.raises(RetryError): |
| 2721 | s.get(httpbin("status/500")) |
| 2722 | |
| 2723 | |
| 2724 | def test_urllib3_pool_connection_closed(httpbin): |
nothing calls this directly
no test coverage detected