Merge hotfixes from 1.5.2 (#934)
* Backport fix for issue #929 * Make the spell check wrapper more robust, solves #933 * Bump version and update changelog and release notes
This commit is contained in:
committed by
GitHub
parent
00eea24e3f
commit
2f75d88694
@@ -48,6 +48,13 @@ def testCoreSpell_Enchant(monkeypatch, tmpDir):
|
||||
assert spChk.listDictionaries() == []
|
||||
assert spChk.describeDict() == ("", "")
|
||||
|
||||
# Break the enchant package, and check error handling
|
||||
spChk = NWSpellEnchant()
|
||||
spChk.theDict = None
|
||||
assert spChk.checkWord("word") is True
|
||||
assert spChk.suggestWords("word") == []
|
||||
assert spChk.addWord("word") is False
|
||||
|
||||
# Load the proper enchant package (twice)
|
||||
spChk = NWSpellEnchant()
|
||||
spChk.setLanguage("en", wList)
|
||||
Reference in New Issue
Block a user