From 281910ff8e9ae98fa78ee5d26ae3f0b713ccf418 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 30 Mar 2025 17:54:15 +0200 Subject: Fixed warnings per flake8 7.2.0. https://github.com/PyCQA/flake8/releases/tag/7.2.0 --- 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 66ec4369d9..0b1d3cd608 100644 --- a/tests/asgi/tests.py +++ b/tests/asgi/tests.py @@ -487,7 +487,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