summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-06-17 14:50:09 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-06-17 15:39:56 -0400
commit5c71977daddb117d0417f3c1bf591f1afb2626b3 (patch)
treeabdcf6f01d9200b141cd37d65c98f2a8c6029882
parentf3e66a32a3bdbf3c362b70e06c16393639dd36f3 (diff)
Refs #34118 -- Removed further asgiref coroutine detection shims in tests.
Follow-up to 4a52533329a03207c1c4592a13fbb12b9ec5ef9e.
-rw-r--r--tests/deprecation/test_middleware_mixin.py3
-rw-r--r--tests/view_tests/tests/test_debug.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/deprecation/test_middleware_mixin.py b/tests/deprecation/test_middleware_mixin.py
index 7e86832e2b..00bc0391ed 100644
--- a/tests/deprecation/test_middleware_mixin.py
+++ b/tests/deprecation/test_middleware_mixin.py
@@ -1,6 +1,7 @@
import threading
+from inspect import iscoroutinefunction
-from asgiref.sync import async_to_sync, iscoroutinefunction
+from asgiref.sync import async_to_sync
from django.contrib.admindocs.middleware import XViewMiddleware
from django.contrib.auth.middleware import (
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py
index d8505860a3..229853b690 100644
--- a/tests/view_tests/tests/test_debug.py
+++ b/tests/view_tests/tests/test_debug.py
@@ -5,11 +5,12 @@ import re
import sys
import tempfile
import threading
+from inspect import iscoroutinefunction
from io import StringIO
from pathlib import Path
from unittest import mock, skipIf
-from asgiref.sync import async_to_sync, iscoroutinefunction
+from asgiref.sync import async_to_sync
from django.core import mail
from django.core.files.uploadedfile import SimpleUploadedFile