]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Tidy up import (#3020)
authorTom Christie <tom@tomchristie.com>
Thu, 28 Dec 2023 13:10:37 +0000 (13:10 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2023 13:10:37 +0000 (13:10 +0000)
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
tests/test_asgi.py

index 8bb6dcb7bc01d064b6cb7bd99963ae64bdc59fbb..29715060979c0da1426aa709441f998bb603d09f 100644 (file)
@@ -3,7 +3,6 @@ import json
 import pytest
 
 import httpx
-from httpx import ASGITransport
 
 
 async def hello_world(scope, receive, send):
@@ -209,7 +208,7 @@ async def test_asgi_disconnect_after_response_complete():
 
 @pytest.mark.anyio
 async def test_asgi_exc_no_raise():
-    transport = ASGITransport(app=raise_exc, raise_app_exceptions=False)
+    transport = httpx.ASGITransport(app=raise_exc, raise_app_exceptions=False)
     async with httpx.AsyncClient(transport=transport) as client:
         response = await client.get("http://www.example.org/")