mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Refs #33735 -- Coped with stacklevel change in ASGITest.test_file_response().
Follow-up toc042fe3a74. The original ignore was added in0bd2c0c901but was not adjusted when the stacklevel changed.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user