Refs #33735 -- Coped with stacklevel change in ASGITest.test_file_response().

Follow-up to c042fe3a74.

The original ignore was added in 0bd2c0c901
but was not adjusted when the stacklevel changed.
This commit is contained in:
Jacob Walls
2026-01-23 12:08:15 -05:00
parent 2351c1b12c
commit 68d110f1fe

View File

@@ -94,7 +94,7 @@ class ASGITest(SimpleTestCase):
# 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.