| Xqt created this task. Xqt added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
After Id9885f7 has been merged, bot_tests.LiveBotTestCase always fails in travis and appveyor because TestBotTreatExit cannot handle the newly introduced skip_page method:
C:\pwb\GIT\core>pwb.py bot_tests -v LiveBotTestCase tests: max_retries reduced from 15 to 1 test_CreatingPageBot (__main__.LiveBotTestCase) Test CreatingPageBot class. ... FAIL test_ExistingPageBot (__main__.LiveBotTestCase) Test ExistingPageBot class. ...
>>> ! <<<
FAIL
======================================================================
FAIL: test_CreatingPageBot (__main__.LiveBotTestCase)
Test CreatingPageBot class.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1466, in run
if self.skip_page(page):
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1789, in skip_page
.format(page=page))
File "C:\pwb\GIT\core\pywikibot\page.py", line 2241, in __getattr__
.format(self.__class__.__name__, name))
AttributeError: 'Page' object has no attribute 'title()'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\tests\bot_tests.py", line 364, in test_CreatingPageBot
self.bot.run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1488, in run
self.exit()
File ".\tests\bot_tests.py", line 331, in exit
super(LiveBotTestCase, self)._exit(t, written, exception)()
File ".\tests\bot_tests.py", line 166, in exit
self.assertEqual(self.bot._treat_counter, treated)
AssertionError: 0 != 1
======================================================================
FAIL: test_ExistingPageBot (__main__.LiveBotTestCase)
Test ExistingPageBot class.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1466, in run
if self.skip_page(page):
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1764, in skip_page
.format(page=page))
File "C:\pwb\GIT\core\pywikibot\page.py", line 2241, in __getattr__
.format(self.__class__.__name__, name))
AttributeError: 'Page' object has no attribute 'title()'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\tests\bot_tests.py", line 345, in test_ExistingPageBot
self.bot.run()
File "C:\pwb\GIT\core\pywikibot\bot.py", line 1488, in run
self.exit()
File ".\tests\bot_tests.py", line 331, in exit
super(LiveBotTestCase, self)._exit(t, written, exception)()
File ".\tests\bot_tests.py", line 166, in exit
self.assertEqual(self.bot._treat_counter, treated)
AssertionError: 1 != 2
----------------------------------------------------------------------
Ran 2 tests in 3.948s
FAILED (failures=2)
C:\pwb\GIT\core>TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
