This commit is contained in:
Kovid Goyal 2014-09-19 11:46:02 +05:30
parent d45aed29a4
commit cebbaa656b

View File

@ -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():