summaryrefslogtreecommitdiff
path: root/django/test/utils.py
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 /django/test/utils.py
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 'django/test/utils.py')
-rw-r--r--django/test/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/utils.py b/django/test/utils.py
index 3661010463..ec888b3588 100644
--- a/django/test/utils.py
+++ b/django/test/utils.py
@@ -8,14 +8,13 @@ import time
import warnings
from contextlib import contextmanager
from functools import wraps
+from inspect import iscoroutinefunction
from io import StringIO
from itertools import chain
from types import SimpleNamespace
from unittest import TestCase, skipIf, skipUnless
from xml.dom.minidom import Node, parseString
-from asgiref.sync import iscoroutinefunction
-
from django.apps import apps
from django.apps.registry import Apps
from django.conf import UserSettingsHolder, settings