diff --git a/tests/asgi/tests.py b/tests/asgi/tests.py index bb1020dd475c..0e23f7c24538 100644 --- a/tests/asgi/tests.py +++ b/tests/asgi/tests.py @@ -94,7 +94,7 @@ async def test_asgi_cookies(self): # StreamingHTTPResponse triggers a warning when iterating the file. # assertWarnsMessage is not async compatible, so ignore_warnings for the # test. - @ignore_warnings(module="django.http.response") + @ignore_warnings(module="django.core.handlers.asgi") async def test_file_response(self): """ Makes sure that FileResponse works over ASGI.