Skip to content

Commit c4beffe

Browse files
codexByron
authored andcommitted
test: fix config regression data spelling (#2240)
The lint job on PR #2241 failed in the codespell pre-commit hook because the new write-preservation regression used "readded" as a sample value. The same two diagnostics reproduce with codespell 2.4.3 locally. Use "again" in both the assignment and assertion. The value is arbitrary: the regression checks the spelling of a removed and recreated option, so this satisfies lint without changing the behavior under test. Validation: codespell passes for the three PR files; the affected test passes on Python 3.14.7; Ruff lint and formatting pass for test_config.py.
1 parent 94a591d commit c4beffe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def test_case_insensitive_writes_preserve_spelling(self, rw_dir):
159159
self.assertEqual(config.get_values("CORE", "BIGNAME"), [3, 4])
160160
self.assertTrue(config.remove_option("CORE", "NEWKEY"))
161161
self.assertFalse(config.has_option("core", "newkey"))
162-
config.set_value("core", "newkey", "readded")
163-
self.assertIn(("newkey", "readded"), config.items("CORE"))
162+
config.set_value("core", "newkey", "again")
163+
self.assertIn(("newkey", "again"), config.items("CORE"))
164164
self.assertTrue(config.remove_option("CORE", "NEWKEY"))
165165
config.rename_section('remote "Origin"', 'Remote "Other"')
166166
self.assertEqual(config.get('REMOTE "Other"', "URL"), "upper")

0 commit comments

Comments
 (0)