diff --git a/codespell_lib/tests/test_dictionary.py b/codespell_lib/tests/test_dictionary.py index 7ab534c832..7fb9ea3114 100644 --- a/codespell_lib/tests/test_dictionary.py +++ b/codespell_lib/tests/test_dictionary.py @@ -25,7 +25,8 @@ else: warnings.warn( "aspell not found, but not required, skipping aspell tests. Got " - "error during import:\n{}".format(exp) + "error during import:\n{}".format(exp), + stacklevel=2, ) global_err_dicts: Dict[str, Dict[str, Any]] = {}