(httpbin)
| 2722 | |
| 2723 | |
| 2724 | def test_urllib3_pool_connection_closed(httpbin): |
| 2725 | s = requests.Session() |
| 2726 | s.mount("http://", HTTPAdapter(pool_connections=0, pool_maxsize=0)) |
| 2727 | |
| 2728 | try: |
| 2729 | s.get(httpbin("status/200")) |
| 2730 | except ConnectionError as e: |
| 2731 | assert "Pool is closed." in str(e) |
| 2732 | |
| 2733 | |
| 2734 | class TestPreparingURLs: |
nothing calls this directly
no test coverage detected