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

-- 
To view, visit https://gerrit.wikimedia.org/r/220553
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I60273d22bef74220e37af03cec368f3766f63d68
Gerrit-PatchSet: 5
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to