()
| 281 | |
| 282 | |
| 283 | def test_text_decoder_empty_cases(): |
| 284 | response = httpx.Response(200, content=b"") |
| 285 | assert response.text == "" |
| 286 | |
| 287 | response = httpx.Response(200, content=[b""]) |
| 288 | response.read() |
| 289 | assert response.text == "" |
| 290 | |
| 291 | |
| 292 | @pytest.mark.parametrize( |