diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-06-17 14:50:09 -0400 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-06-17 15:39:56 -0400 |
| commit | 5c71977daddb117d0417f3c1bf591f1afb2626b3 (patch) | |
| tree | abdcf6f01d9200b141cd37d65c98f2a8c6029882 | |
| parent | f3e66a32a3bdbf3c362b70e06c16393639dd36f3 (diff) | |
Refs #34118 -- Removed further asgiref coroutine detection shims in tests.
Follow-up to 4a52533329a03207c1c4592a13fbb12b9ec5ef9e.
| -rw-r--r-- | tests/deprecation/test_middleware_mixin.py | 3 | ||||
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 3 |
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 |
