mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not run the dictionaries test multiple times
This commit is contained in:
parent
87982fcc36
commit
60f4031e1b
@ -8,7 +8,7 @@ import unittest
|
||||
|
||||
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 find_tests(which_tests=None):
|
||||
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 @@ class Dictionaries(object):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user