Skip to content

Commit 9a5fb4b

Browse files
perilloDimitriPapadopoulos
authored andcommitted
test: remove warning when aspell is not installed
pytest already prints a skip message, so the warning is not necessary and instead may cause confusion.
1 parent 640e878 commit 9a5fb4b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

codespell_lib/tests/test_dictionary.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os.path as op
44
import pathlib
55
import re
6-
import warnings
76
from typing import Any, Dict, Iterable, Optional, Set, Tuple
87

98
import pytest
@@ -37,11 +36,6 @@
3736
f"REQUIRE_ASPELL=true. Got error during import:\n{e}"
3837
)
3938
raise RuntimeError(msg) from e
40-
warnings.warn(
41-
"aspell not found, but not required, skipping aspell tests. Got "
42-
f"error during import:\n{e}",
43-
stacklevel=2,
44-
)
4539

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

0 commit comments

Comments
 (0)