summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/asgi/tests.py2
1 files changed, 1 insertions, 1 deletions
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)