Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 66ec667 #2838

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions codespell_lib/tests/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_dictionary_looping(
err = err.lower()
assert (
err not in this_err_dict
), f"error {err:!r} already exists in {short_fname}"
), f"error {err!r} already exists in {short_fname}"
rep = rep.rstrip("\n")
reps = [r.strip() for r in rep.lower().split(",")]
reps = [r for r in reps if len(r)]
Expand All @@ -298,15 +298,15 @@ def test_dictionary_looping(
# error duplication (eventually maybe we should just merge?)
for err in this_err_dict:
assert err not in other_err_dict, (
f"error {err:!r} in dictionary {short_fname} "
f"error {err!r} in dictionary {short_fname} "
f"already exists in dictionary {other_fname}"
)
# 2. check corrections in this dict against other dicts (upper)
pair = (short_fname, other_fname)
if pair not in allowed_dups:
for err in this_err_dict:
assert err not in other_err_dict, (
f"error {err:!r} in dictionary {short_fname} "
f"error {err!r} in dictionary {short_fname} "
f"already exists in dictionary {other_fname}"
)
for r in this_err_dict[err]:
Expand Down