()
| 744 | |
| 745 | |
| 746 | def test_cannot_read_after_response_closed(): |
| 747 | response = httpx.Response( |
| 748 | 200, |
| 749 | content=streaming_body(), |
| 750 | ) |
| 751 | |
| 752 | response.close() |
| 753 | with pytest.raises(httpx.StreamClosed): |
| 754 | response.read() |
| 755 | |
| 756 | |
| 757 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected