We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72de85a commit 9aa359dCopy full SHA for 9aa359d
tests/checkers/unittest_spelling.py
@@ -47,9 +47,12 @@ def test_spelling_dict_help(self) -> None:
47
assert "need to install the system dep" in _get_enchant_dict_help(
48
[], pyenchant_available=True
49
)
50
- assert "Available dictionaries: " in _get_enchant_dict_help(
51
- enchant.Broker().list_dicts(), pyenchant_available=True
52
- )
+ if enchant is not None:
+ assert "Available dictionaries: " in _get_enchant_dict_help(
+ enchant.Broker().list_dicts(), pyenchant_available=True
53
+ )
54
+ else:
55
+ pytest.skip("'enchant' is not installed.")
56
57
@skip_on_missing_package_or_dict
58
@set_config(spelling_dict=spell_dict)
0 commit comments