From d633c1dbe3097c6bc2dae18abcd4858bdbb4db94 Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Sat, 23 Dec 2023 12:26:35 +0100 Subject: [PATCH] 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. --- codespell_lib/tests/test_dictionary.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/codespell_lib/tests/test_dictionary.py b/codespell_lib/tests/test_dictionary.py index 614ffa3592..aecf5cb498 100644 --- a/codespell_lib/tests/test_dictionary.py +++ b/codespell_lib/tests/test_dictionary.py @@ -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 @@ -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()