summaryrefslogtreecommitdiff
path: root/tests/async
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-01-30 15:53:27 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-01-31 08:59:54 -0500
commit4a52533329a03207c1c4592a13fbb12b9ec5ef9e (patch)
treed45724230dc3a299b1563418e2713cfc81450604 /tests/async
parent93dfb16e96797583a6f45eeb918e78c7f2817318 (diff)
Refs #34118 -- Removed asgiref coroutine detection shims.
As Python 3.12 is now the floor, we can drop the shims and use the `inspect` module.
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/async/tests.py b/tests/async/tests.py
index 6ca5c989b0..43051c369a 100644
--- a/tests/async/tests.py
+++ b/tests/async/tests.py
@@ -1,8 +1,9 @@
import asyncio
import os
+from inspect import iscoroutinefunction
from unittest import mock
-from asgiref.sync import async_to_sync, iscoroutinefunction
+from asgiref.sync import async_to_sync
from django.core.cache import DEFAULT_CACHE_ALIAS, caches
from django.core.exceptions import ImproperlyConfigured, SynchronousOnlyOperation