Fixed #20584 -- Fixed memcached's get_many() with single-use iterators.

Thanks Guyon Morée for the report.
This commit is contained in:
Christian Barcenas 2018-07-06 11:03:58 -07:00 committed by Tim Graham
parent 38e904e265
commit c9c6c16650
3 changed files with 5 additions and 6 deletions

View file

@ -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