From b8824e8d17434957650517370f739e340867c381 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 26 Aug 2021 20:19:36 +0100 Subject: [PATCH] Refs #31907 -- Fixed incorrect argument for delete_many() in cache tests. --- tests/cache/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cache/tests.py b/tests/cache/tests.py index cea70463d29..f2b70a49199 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -213,7 +213,7 @@ class DummyCacheTests(SimpleTestCase): def test_delete_many_invalid_key(self): msg = KEY_ERRORS_WITH_MEMCACHED_MSG % ':1:key with spaces' with self.assertWarnsMessage(CacheKeyWarning, msg): - cache.delete_many({'key with spaces': 'foo'}) + cache.delete_many(['key with spaces']) def test_clear(self): "clear does nothing for the dummy cache backend" @@ -700,7 +700,7 @@ class BaseCacheTests: ('delete', [key]), ('get_many', [[key, 'b']]), ('set_many', [{key: 1, 'b': 2}]), - ('delete_many', [{key: 1, 'b': 2}]), + ('delete_many', [[key, 'b']]), ] try: for operation, args in tests: @@ -1409,7 +1409,7 @@ class BaseMemcachedTests(BaseCacheTests): ('delete', [key]), ('get_many', [[key, 'b']]), ('set_many', [{key: 1, 'b': 2}]), - ('delete_many', [{key: 1, 'b': 2}]), + ('delete_many', [[key, 'b']]), ] for operation, args in tests: with self.subTest(operation=operation):