Skip to content

Commit

Permalink
test: remove warning when aspell is not installed
Browse files Browse the repository at this point in the history
pytest already prints a skip message, so the warning is not necessary
and instead may cause confusion.
  • Loading branch information
perillo authored and DimitriPapadopoulos committed Dec 23, 2023
1 parent 640e878 commit 9a5fb4b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions codespell_lib/tests/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os.path as op
import pathlib
import re
import warnings
from typing import Any, Dict, Iterable, Optional, Set, Tuple

import pytest
Expand Down Expand Up @@ -37,11 +36,6 @@
f"REQUIRE_ASPELL=true. Got error during import:\n{e}"
)
raise RuntimeError(msg) from e
warnings.warn(
"aspell not found, but not required, skipping aspell tests. Got "
f"error during import:\n{e}",
stacklevel=2,
)

global_err_dicts: Dict[str, Dict[str, Any]] = {}
global_pairs: Set[Tuple[str, str]] = set()
Expand Down

0 comments on commit 9a5fb4b

Please sign in to comment.