Skip to content

Commit d29639e

Browse files
committed
(cont)
1 parent 3795e20 commit d29639e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

codespell_lib/gen_OX.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
34
SUFFIXES=(
45
"ize"
56
"izes"

codespell_lib/tests/test_dictionary.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,8 @@ def test_dictionary_looping(
337337
global_pairs.add(pair)
338338
for other_fname, other_err_dict in global_err_dicts.items():
339339
# error duplication (eventually maybe we should just merge?)
340-
for err in this_err_dict:
341-
assert (
342-
err not in other_err_dict or this_err_dict[err] != other_err_dict[err]
343-
), (
340+
for err, fix in this_err_dict.items():
341+
assert err not in other_err_dict or fix == other_err_dict[err], (
344342
f"error {err!r} in dictionary {short_fname} "
345343
f"already exists in dictionary {other_fname}"
346344
)

0 commit comments

Comments
 (0)