From 0aa0224107f09c02fbb30bdf6bbc4be49df8c0bf Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 30 Mar 2025 17:54:15 +0200 Subject: [5.1.x] Fixed warnings per flake8 7.2.0. https://github.com/PyCQA/flake8/releases/tag/7.2.0 Backport of 281910ff8e9ae98fa78ee5d26ae3f0b713ccf418 from main. --- tests/asgi/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/asgi/tests.py b/tests/asgi/tests.py index 658e9d853e..c54e721fc4 100644 --- a/tests/asgi/tests.py +++ b/tests/asgi/tests.py @@ -485,7 +485,7 @@ class ASGITest(SimpleTestCase): # A view that will listen for the cancelled error. async def view(request): - nonlocal view_started, view_did_cancel + nonlocal view_did_cancel view_started.set() try: await asyncio.sleep(0.1) -- cgit v1.3