aboutsummaryrefslogtreecommitdiff
path: root/tests/test_lfu.py
diff options
context:
space:
mode:
authorThomas Kemmer <tkemmer@computer.org>2015-06-24 05:55:10 +0200
committerThomas Kemmer <tkemmer@computer.org>2015-06-24 05:55:10 +0200
commitda4ea1a8a829f59caea0279deb9c25d0dabfbcda (patch)
tree7a2443a0170fa028dbbeed4fed2695fffadf1bb9 /tests/test_lfu.py
parent0ca640f2c88f5a6767bb09da8cab5983665b6d98 (diff)
downloadcachetools-da4ea1a8a829f59caea0279deb9c25d0dabfbcda.tar.gz
Fix #42: Clear cache statistics in clear_cache().
Diffstat (limited to 'tests/test_lfu.py')
-rw-r--r--tests/test_lfu.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_lfu.py b/tests/test_lfu.py
index 1c4741b..fe0437e 100644
--- a/tests/test_lfu.py
+++ b/tests/test_lfu.py
@@ -1,18 +1,15 @@
import unittest
-from cachetools import LFUCache, lfu_cache
+from cachetools import LFUCache
-from . import CacheTestMixin, DecoratorTestMixin
+from . import CacheTestMixin
-class LFUCacheTest(unittest.TestCase, CacheTestMixin, DecoratorTestMixin):
+class LFUCacheTest(unittest.TestCase, CacheTestMixin):
def cache(self, maxsize, missing=None, getsizeof=None):
return LFUCache(maxsize, missing=missing, getsizeof=getsizeof)
- def decorator(self, maxsize, typed=False, lock=None):
- return lfu_cache(maxsize, typed=typed, lock=lock)
-
def test_lfu(self):
cache = self.cache(maxsize=2)