mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:52:31 +02:00
Do not run the dictionaries test multiple times
This commit is contained in:
parent
87982fcc36
commit
60f4031e1b
2 changed files with 2 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
from setup import Command
|
||||
|
||||
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants build misc library dictionaries'.split())
|
||||
TEST_MODULES = frozenset('srv db polish opf css docx cfi matcher icu smartypants build misc library'.split())
|
||||
|
||||
|
||||
def find_tests(which_tests=None):
|
||||
|
|
@ -69,9 +69,6 @@ def ok(x):
|
|||
if ok('library'):
|
||||
from calibre.library.test_cli import find_tests
|
||||
a(find_tests())
|
||||
if ok('dictionaries'):
|
||||
from calibre.spell.dictionary import find_tests
|
||||
a(find_tests())
|
||||
|
||||
tests = unittest.TestSuite(ans)
|
||||
return tests
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ def add_suggestion(w, ans):
|
|||
|
||||
if d is not None:
|
||||
try:
|
||||
ans = d.obj.suggest(unicode(word))
|
||||
ans = d.obj.suggest(unicode(word).replace('\u2010', '-'))
|
||||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue