|
@@ -64,7 +64,7 @@ class test_LRUCache(Case):
|
|
|
|
|
|
def test_update_larger_than_cache_size(self):
|
|
|
x = LRUCache(2)
|
|
|
- x.update({x: x for x in range(100)})
|
|
|
+ x.update(dict((x, x) for x in range(100)))
|
|
|
self.assertEqual(list(x.keys()), [98, 99])
|
|
|
|
|
|
def assertSafeIter(self, method, interval=0.01, size=10000):
|