From f5c340684be3f27a145ec86ba55b24eb88d2780c Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Mon, 16 Oct 2023 18:50:20 -0700 Subject: Fixed #34901 -- Added async-compatible interface to session engines. Thanks Andrew-Chen-Wang for the initial implementation which was posted to the Django forum thread about asyncifying contrib modules. --- tests/cache/failing_cache.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/cache') diff --git a/tests/cache/failing_cache.py b/tests/cache/failing_cache.py index e2f0043bb7..1c9b5996d6 100644 --- a/tests/cache/failing_cache.py +++ b/tests/cache/failing_cache.py @@ -5,3 +5,6 @@ class CacheClass(LocMemCache): def set(self, *args, **kwargs): raise Exception("Faked exception saving to cache") + + async def aset(self, *args, **kwargs): + raise Exception("Faked exception saving to cache") -- cgit v1.3