Mpaa has uploaded a new change for review.
https://gerrit.wikimedia.org/r/220553
Change subject: arcivebot_tests.py: denug statement for failing travis builds
......................................................................
arcivebot_tests.py: denug 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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/53/220553/1
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index 4379c96..77a7795 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 as e:
+ if thread.code not in self.expected_failures:
+ pywikibot.output('code %s: %s' % (thread.code,
thread.content))
+ raise(e)
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: newchange
Gerrit-Change-Id: I60273d22bef74220e37af03cec368f3766f63d68
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits