summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2014-12-06 13:00:09 -0800
committerTim Graham <timograham@gmail.com>2014-12-08 07:58:23 -0500
commit4468c08d70b5b722f3ebd4872909e56580ec7d68 (patch)
tree3da12d757bc9b586df4ba39da20b8793abcae76e /tests/cache
parentb327a614eb7d885441c6a2575e10b70ac1352aae (diff)
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index bdbde46336..9762620afc 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -219,7 +219,7 @@ def caches_setting_for_tests(base=None, **params):
# This results in the following search order:
# params -> _caches_setting_base -> base
base = base or {}
- setting = dict((k, base.copy()) for k in _caches_setting_base.keys())
+ setting = {k: base.copy() for k in _caches_setting_base.keys()}
for key, cache_params in setting.items():
cache_params.update(_caches_setting_base[key])
cache_params.update(params)