summaryrefslogtreecommitdiff
path: root/django/test/testcases.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/testcases.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/testcases.py')
-rw-r--r--django/test/testcases.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index c56fa52806..5f83612fe5 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -11,6 +11,7 @@ from contextlib import contextmanager
from copy import copy, deepcopy
from difflib import get_close_matches
from functools import wraps
+from inspect import iscoroutinefunction
from unittest import mock
from unittest.suite import _DebugResult
from unittest.util import safe_repr
@@ -25,7 +26,7 @@ from urllib.parse import (
)
from urllib.request import url2pathname
-from asgiref.sync import async_to_sync, iscoroutinefunction
+from asgiref.sync import async_to_sync
from django.apps import apps
from django.conf import settings