summary refs log tree commit diff
path: root/tests/storage/test__base.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-02-19 15:55:02 +0000
committerMark Haines <mjark@negativecurvature.net>2016-02-19 15:55:02 +0000
commitb82d6f70a49faaf551e7709ddfd7a7607ade3e42 (patch)
treef13b8706f7cdc4faa6e44e207fd57d3cfe30f97f /tests/storage/test__base.py
parentAdd Measures to presence (diff)
parentFix flake8 warnings for tests (diff)
downloadsynapse-b82d6f70a49faaf551e7709ddfd7a7607ade3e42.tar.xz
Merge pull request #590 from matrix-org/markjh/formatting
Fix flake8 warnings for tests
Diffstat (limited to 'tests/storage/test__base.py')
-rw-r--r--tests/storage/test__base.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/storage/test__base.py b/tests/storage/test__base.py
index 219288621d..96b7dba5fe 100644
--- a/tests/storage/test__base.py
+++ b/tests/storage/test__base.py
@@ -174,11 +174,13 @@ class CacheDecoratorTestCase(unittest.TestCase):
 
         # There must have been at least 2 evictions, meaning if we calculate
         # all 12 values again, we must get called at least 2 more times
-        for k in range(0,12):
+        for k in range(0, 12):
             yield a.func(k)
 
-        self.assertTrue(callcount[0] >= 14,
-            msg="Expected callcount >= 14, got %d" % (callcount[0]))
+        self.assertTrue(
+            callcount[0] >= 14,
+            msg="Expected callcount >= 14, got %d" % (callcount[0])
+        )
 
     def test_prefill(self):
         callcount = [0]