diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 09:09:56 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 18:00:31 +0100 |
commit | 47dae6a432b060bfc44c6e93e5703cdc8d307f7b (patch) | |
tree | 596bd7a7cebdfce80e4a21418602b7e8a02fc5c1 | |
parent | 774c37303746016ae1e73ec84c1deb4e344171a7 (diff) | |
download | pylint-git-47dae6a432b060bfc44c6e93e5703cdc8d307f7b.tar.gz |
Simplification of for loop on dict by using items()
-rw-r--r-- | tests/config/test_functional_config_loading.py | 3 |
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] |