XZise has submitted this change and it was merged.
Change subject: archivebot_tests.py: debug statement for failing travis builds ......................................................................
archivebot_tests.py: debug statement for failing travis builds
Add a debug print to understand why travis builds are failing every now and then.
Bug:T69663 Change-Id: I60273d22bef74220e37af03cec368f3766f63d68 --- M tests/archivebot_tests.py 1 file changed, 6 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py index 4379c96..819faf1 100644 --- a/tests/archivebot_tests.py +++ b/tests/archivebot_tests.py @@ -70,7 +70,12 @@ self.assertIsInstance(thread.code, basestring) self.assertEqual(thread.code, talk.timestripper.site.code) self.assertIsInstance(thread.content, basestring) - self.assertIsInstance(thread.timestamp, datetime) + try: + self.assertIsInstance(thread.timestamp, datetime) + except AssertionError: + if thread.code not in self.expected_failures: + pywikibot.output('code %s: %s' % (thread.code, thread.content)) + raise
expected_failures = ['ar', 'pdc', 'th'] # expected failures - should be fixed
pywikibot-commits@lists.wikimedia.org