(pool: HTTPConnectionPool)
| 68 | |
| 69 | |
| 70 | def test_double_getresponse(pool: HTTPConnectionPool) -> None: |
| 71 | with contextlib.closing(pool._get_conn()) as conn: |
| 72 | conn.request("GET", "/") |
| 73 | _ = conn.getresponse() |
| 74 | |
| 75 | # Calling getrepsonse() twice should cause an error |
| 76 | with pytest.raises(ResponseNotReady): |
| 77 | conn.getresponse() |
| 78 | |
| 79 | |
| 80 | def test_connection_state_properties(pool: HTTPConnectionPool) -> None: |
nothing calls this directly
no test coverage detected