mirror of
https://github.com/WikiTeam/wikiteam
synced 2024-11-12 07:12:41 +00:00
Catch ConnectionError when running tests to prevent build errors
This commit is contained in:
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…
Reference in New Issue
Block a user