mirror of
https://github.com/django/django.git
synced 2025-07-19 03:05:32 +00:00
Fixed #20584 -- Fixed memcached's get_many() with single-use iterators.
Thanks Guyon Morée for the report.
This commit is contained in:
parent
38e904e265
commit
c9c6c16650
3 changed files with 5 additions and 6 deletions
1
tests/cache/tests.py
vendored
1
tests/cache/tests.py
vendored
|
@ -312,6 +312,7 @@ class BaseCacheTests:
|
|||
cache.set('d', 'd')
|
||||
self.assertEqual(cache.get_many(['a', 'c', 'd']), {'a': 'a', 'c': 'c', 'd': 'd'})
|
||||
self.assertEqual(cache.get_many(['a', 'b', 'e']), {'a': 'a', 'b': 'b'})
|
||||
self.assertEqual(cache.get_many(iter(['a', 'b', 'e'])), {'a': 'a', 'b': 'b'})
|
||||
|
||||
def test_delete(self):
|
||||
# Cache keys can be deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue