diff options
| author | Jon Janzen <jon@jonjanzen.com> | 2023-10-16 18:50:20 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-03-13 17:55:15 +0100 |
| commit | f5c340684be3f27a145ec86ba55b24eb88d2780c (patch) | |
| tree | 910a61644c1bdd368e20b14977ee7a20aeff7688 /tests/cache | |
| parent | 33c06ca0da6c4f151b84e5d8c305faff9ca30d98 (diff) | |
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.
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/failing_cache.py | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
