()
| 123 | |
| 124 | |
| 125 | def test_wsgi_http_error(): |
| 126 | transport = httpx.WSGITransport(app=partial(raise_exc, exc=RuntimeError)) |
| 127 | client = httpx.Client(transport=transport) |
| 128 | with pytest.raises(RuntimeError): |
| 129 | client.get("http://www.example.org/") |
| 130 | |
| 131 | |
| 132 | def test_wsgi_generator(): |