diff options
| -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 |
