diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-09-16 23:04:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 23:04:21 (GMT) |
commit | 0048afc16a7e7301d5c565237db271505e5fbed9 (patch) | |
tree | 51784b04b971073163df417c8cc81dddc98e1480 /Lib/idlelib/idle_test | |
parent | 81528ba2e81c39f4d6bca5b785e818c7d08b8501 (diff) | |
download | cpython-0048afc16a7e7301d5c565237db271505e5fbed9.zip cpython-0048afc16a7e7301d5c565237db271505e5fbed9.tar.gz cpython-0048afc16a7e7301d5c565237db271505e5fbed9.tar.bz2 |
bpo-38183: Test_idle ignores user config directory GH-16198)
It no longer tries to create or access .idlerc or any files within.
Users must run IDLE to discover problems with saving settings.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_config.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/idlelib/idle_test/test_config.py b/Lib/idlelib/idle_test/test_config.py index 492f2f6..697fda5 100644 --- a/Lib/idlelib/idle_test/test_config.py +++ b/Lib/idlelib/idle_test/test_config.py @@ -220,7 +220,7 @@ class IdleConfTest(unittest.TestCase): @unittest.skipIf(sys.platform.startswith('win'), 'this is test for unix system') def test_get_user_cfg_dir_unix(self): - "Test to get user config directory under unix" + # Test to get user config directory under unix. conf = self.new_config(_utest=True) # Check normal way should success @@ -243,7 +243,7 @@ class IdleConfTest(unittest.TestCase): @unittest.skipIf(not sys.platform.startswith('win'), 'this is test for Windows system') def test_get_user_cfg_dir_windows(self): - "Test to get user config directory under Windows" + # Test to get user config directory under Windows. conf = self.new_config(_utest=True) # Check normal way should success @@ -284,12 +284,12 @@ class IdleConfTest(unittest.TestCase): self.assertIsInstance(user_parser, config.IdleUserConfParser) # Check config path are correct - for config_type, parser in conf.defaultCfg.items(): + for cfg_type, parser in conf.defaultCfg.items(): self.assertEqual(parser.file, - os.path.join(idle_dir, 'config-%s.def' % config_type)) - for config_type, parser in conf.userCfg.items(): + os.path.join(idle_dir, f'config-{cfg_type}.def')) + for cfg_type, parser in conf.userCfg.items(): self.assertEqual(parser.file, - os.path.join(conf.userdir, 'config-%s.cfg' % config_type)) + os.path.join(conf.userdir or '#', f'config-{cfg_type}.cfg')) def test_load_cfg_files(self): conf = self.new_config(_utest=True) @@ -373,7 +373,7 @@ class IdleConfTest(unittest.TestCase): 'background': '#171717'}) def test_get_theme_dict(self): - "XXX: NOT YET DONE" + # TODO: finish. conf = self.mock_config() # These two should be the same |