For example:
_____________________ LiveBotTestCase.test_ExistingPageBot _____________________
self = <tests.bot_tests.LiveBotTestCase testMethod=test_ExistingPageBot>
def test_ExistingPageBot(self):
"""Test ExistingPageBot class."""
def post_treat(page):
"""Verify the page exists."""
self.assertTrue(page.exists())
self._treat_site = None
self.bot = pywikibot.bot.ExistingPageBot(
generator=self._missing_generator())
self.bot.treat_page = self._treat_page(post_treat=post_treat)
self.bot.exit = self._exit()
> self.bot.run()
tests/bot_tests.py:345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pywikibot/bot.py:1453: in run
self.exit()
tests/bot_tests.py:331: in exit
super(LiveBotTestCase, self)._exit(t, written, exception)()
tests/bot_tests.py:174: in exit
self.assertRaisesRegex(StopIteration, '^$', next, self._page_iter)
E AssertionError: "^$" does not match "None"For more see: https://travis-ci.org/wikimedia/pywikibot-core/jobs/203198988