summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-05-27 16:08:46 -0700
committerTim Graham <timograham@gmail.com>2017-05-27 19:08:46 -0400
commit21046e77734278cea871dce922220bf29aa5b7b4 (patch)
treee0820850a3d058c35307916da793668f7e5c48b3 /tests/cache
parent2a5708a304cf337dbf556e2bd87a930079f8f766 (diff)
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
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 e14c72754d..2c6b50fe38 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -240,7 +240,7 @@ def caches_setting_for_tests(base=None, exclude=None, **params):
# params -> _caches_setting_base -> base
base = base or {}
exclude = exclude or set()
- setting = {k: base.copy() for k in _caches_setting_base.keys() if k not in exclude}
+ setting = {k: base.copy() for k in _caches_setting_base if k not in exclude}
for key, cache_params in setting.items():
cache_params.update(_caches_setting_base[key])
cache_params.update(params)