diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-10-18 09:05:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 09:05:08 (GMT) |
commit | b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5 (patch) | |
tree | c632d19080aeb74485dc1ac8abdebb157be572cf /Lib/idlelib/idle_test/test_config.py | |
parent | 577a8fb72ba182dd2984b66fa8a79ede67bb95e6 (diff) | |
download | cpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.zip cpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.tar.gz cpython-b8ce5d9c172c7c78b4e97a37f76abae48fb71ef5.tar.bz2 |
[3.12] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) (#111026)
gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960)
Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
(cherry picked from commit baefbb21d91db2d950706737a6ebee9b2eff5c2d)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/idle_test/test_config.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_config.py b/Lib/idlelib/idle_test/test_config.py index 08ed76f..a746f15 100644 --- a/Lib/idlelib/idle_test/test_config.py +++ b/Lib/idlelib/idle_test/test_config.py @@ -274,8 +274,8 @@ class IdleConfTest(unittest.TestCase): conf.CreateConfigHandlers() # Check keys are equal - self.assertCountEqual(conf.defaultCfg.keys(), conf.config_types) - self.assertCountEqual(conf.userCfg.keys(), conf.config_types) + self.assertCountEqual(conf.defaultCfg, conf.config_types) + self.assertCountEqual(conf.userCfg, conf.config_types) # Check conf parser are correct type for default_parser in conf.defaultCfg.values(): |