summaryrefslogtreecommitdiff
path: root/test/test_cache.py
diff options
context:
space:
mode:
authorLaurent Peuch <cortex@worlddomination.be>2020-08-26 20:45:22 +0200
committerLaurent Peuch <cortex@worlddomination.be>2020-08-26 20:45:22 +0200
commitcc6c814c68284dd5bd64823b6c60a844eb9c2ec4 (patch)
treede9f7f55cfeaeeaa25c86c9b7ff87145d3a322b5 /test/test_cache.py
parent894ccade059de8cab667187e93ea27daf7c75658 (diff)
downloadlogilab-common-cc6c814c68284dd5bd64823b6c60a844eb9c2ec4.tar.gz
style(black): new black release changed a bunch of stuff
Diffstat (limited to 'test/test_cache.py')
-rw-r--r--test/test_cache.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_cache.py b/test/test_cache.py
index d094943..41c628e 100644
--- a/test/test_cache.py
+++ b/test/test_cache.py
@@ -106,8 +106,7 @@ class CacheTestCase(TestCase):
) # usage list and data keys are different
def test_nullsize(self):
- """Checks that a 'NULL' size cache doesn't store anything
- """
+ """Checks that a 'NULL' size cache doesn't store anything"""
null_cache = Cache(0)
null_cache["foo"] = "bar"
self.assertEqual(null_cache.size, 0, "Cache size should be O, not %d" % null_cache.size)
@@ -118,8 +117,7 @@ class CacheTestCase(TestCase):
self.assertRaises(KeyError, null_cache.__delitem__, "foo")
def test_getitem(self):
- """ Checks that getitem doest not modify the _usage attribute
- """
+ """Checks that getitem doest not modify the _usage attribute"""
try:
self.cache["toto"]
except KeyError: