()
| 102 | @pytest.mark.anyio |
| 103 | @pytest.mark.network |
| 104 | async def test_async_proxy_close(): |
| 105 | try: |
| 106 | transport = httpx.AsyncHTTPTransport(proxy=PROXY_URL) |
| 107 | client = httpx.AsyncClient(mounts={"https://": transport}) |
| 108 | await client.get("http://example.com") |
| 109 | finally: |
| 110 | await client.aclose() |
| 111 | |
| 112 | |
| 113 | @pytest.mark.network |