summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-10-17 15:15:10 +0200
committerGitHub <noreply@github.com>2024-10-17 10:15:10 -0300
commitbd3b1dfa2422e02ced3a894adb7544e42540c97d (patch)
tree51bcde8498f1968f697726092b3e63eea5b17325 /tests/auth_tests
parent8b1a3a56438ce99fe9058f078a6bdd92a01e1130 (diff)
Refs #35844 -- Used asgiref.sync.iscoroutinefunction() instead of deprecated asyncio.iscoroutinefunction().
Fixes DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead.
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_decorators.py b/tests/auth_tests/test_decorators.py
index fa2672beb4..2c3f93d2ab 100644
--- a/tests/auth_tests/test_decorators.py
+++ b/tests/auth_tests/test_decorators.py
@@ -1,4 +1,4 @@
-from asyncio import iscoroutinefunction
+from asgiref.sync import iscoroutinefunction
from django.conf import settings
from django.contrib.auth import models