(self)
| 218 | assert not c.is_same_host(b) |
| 219 | |
| 220 | def test_max_connections(self) -> None: |
| 221 | with HTTPConnectionPool(host="localhost", maxsize=1, block=True) as pool: |
| 222 | pool._get_conn(timeout=SHORT_TIMEOUT) |
| 223 | |
| 224 | with pytest.raises(EmptyPoolError): |
| 225 | pool._get_conn(timeout=SHORT_TIMEOUT) |
| 226 | |
| 227 | with pytest.raises(EmptyPoolError): |
| 228 | pool.request("GET", "/", pool_timeout=SHORT_TIMEOUT) |
| 229 | |
| 230 | assert pool.num_connections == 1 |
| 231 | |
| 232 | def test_put_conn_when_pool_is_full_nonblocking( |
| 233 | self, caplog: pytest.LogCaptureFixture |
nothing calls this directly
no test coverage detected