Catch ConnectionError when running tests to prevent build errors

pull/287/head
Hydriz Scholz 8 years ago
parent daa39616e2
commit 5d416da913

@ -261,7 +261,11 @@ class TestDumpgenerator(unittest.TestCase):
]
for wiki, engine in tests:
print 'Testing', wiki
guess_engine = getWikiEngine(wiki)
try:
guess_engine = getWikiEngine(wiki)
except ConnectionError:
print "%s failed to load, skipping..." % (wiki)
continue
print 'Got: %s, expected: %s' % (guess_engine, engine)
self.assertEqual(guess_engine, engine)

Loading…
Cancel
Save