mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d45aed29a4
commit
cebbaa656b
@ -55,11 +55,15 @@ def test_html5lib():
|
|||||||
print ('html5lib OK!')
|
print ('html5lib OK!')
|
||||||
|
|
||||||
def test_plugins():
|
def test_plugins():
|
||||||
|
bad = []
|
||||||
for name in plugins:
|
for name in plugins:
|
||||||
mod, err = plugins[name]
|
mod, err = plugins[name]
|
||||||
if err or not mod:
|
if err or not mod:
|
||||||
raise RuntimeError('Plugin %s failed to load with error: %s' %
|
bad.append((name, err))
|
||||||
(name, err))
|
if bad:
|
||||||
|
for name, err in bad:
|
||||||
|
print ('Failed to load plugin:', name, 'with error:\n', err)
|
||||||
|
raise SystemExit(1)
|
||||||
print ('Loaded all plugins successfully!')
|
print ('Loaded all plugins successfully!')
|
||||||
|
|
||||||
def test_lxml():
|
def test_lxml():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user