summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-11-12 09:09:56 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-11-12 18:00:31 +0100
commit47dae6a432b060bfc44c6e93e5703cdc8d307f7b (patch)
tree596bd7a7cebdfce80e4a21418602b7e8a02fc5c1
parent774c37303746016ae1e73ec84c1deb4e344171a7 (diff)
downloadpylint-git-47dae6a432b060bfc44c6e93e5703cdc8d307f7b.tar.gz
Simplification of for loop on dict by using items()
-rw-r--r--tests/config/test_functional_config_loading.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/config/test_functional_config_loading.py b/tests/config/test_functional_config_loading.py
index 48abe8191..73b21c396 100644
--- a/tests/config/test_functional_config_loading.py
+++ b/tests/config/test_functional_config_loading.py
@@ -86,9 +86,8 @@ def test_functional_config_loading(
assert sorted(expected_loaded_configuration.keys()) == sorted(
runner.linter.config.__dict__.keys()
), msg
- for key in expected_loaded_configuration:
+ for key, expected_value in expected_loaded_configuration.items():
key_msg = f"{msg} for key '{key}':"
- expected_value = expected_loaded_configuration[key]
if isinstance(expected_value, list):
assert sorted(expected_value) == sorted(
runner.linter.config.__dict__[key]