jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/815893 )

Change subject: [tests] Skip flow_edit_tests on TimeoutError
......................................................................

[tests] Skip flow_edit_tests on TimeoutError

Change-Id: I7ccba690542bd53539f3ae4e4d48e48a39ad0e13
---
M tests/flow_edit_tests.py
1 file changed, 10 insertions(+), 5 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/flow_edit_tests.py b/tests/flow_edit_tests.py
index e8b0644..20e797e 100755
--- a/tests/flow_edit_tests.py
+++ b/tests/flow_edit_tests.py
@@ -8,9 +8,10 @@
 import unittest
 from contextlib import contextmanager, suppress

-from pywikibot.exceptions import LockedPageError
+from pywikibot.exceptions import LockedPageError, TimeoutError
 from pywikibot.flow import Board, Post, Topic
 from tests.aspects import TestCase
+from tests.utils import skipping


 MODERATION_REASON = 'Pywikibot test'
@@ -60,7 +61,8 @@
         # Setup
         content = 'I am a reply to the topic. Replying works!'
         topic = Topic(self.site, self._topic_title)
-        old_replies = topic.replies(force=True)[:]
+        with skipping(TimeoutError):
+            old_replies = topic.replies(force=True)[:]
         # Reply
         reply_post = topic.reply(content, 'wikitext')
         # Test content
@@ -79,7 +81,8 @@
         content = ("I am a reply to the topic's root post. "
                    'Replying still works!')
         topic = Topic(self.site, self._topic_title)
-        topic_root = topic.root
+        with skipping(TimeoutError):
+            topic_root = topic.root
         old_replies = topic_root.replies(force=True)[:]
         # Reply
         reply_post = topic_root.reply(content, 'wikitext')
@@ -99,7 +102,8 @@
         content = 'I am a nested reply to a regular post. Still going strong!'
         topic = Topic(self.site, self._topic_title)
         root_post = Post(topic, 'stf5bamzx32rj1gt')
-        old_replies = root_post.replies(force=True)[:]
+        with skipping(TimeoutError):
+            old_replies = root_post.replies(force=True)[:]
         # Reply
         reply_post = root_post.reply(content, 'wikitext')
         # Test content
@@ -119,7 +123,8 @@
         second_content = ('I am a nested reply. This conversation is '
                           'getting pretty good!')
         topic = Topic(self.site, self._topic_title)
-        topic_root = topic.root
+        with skipping(TimeoutError):
+            topic_root = topic.root
         # First reply
         old_root_replies = topic_root.replies(force=True)[:]
         first_reply_post = topic_root.reply(first_content, 'wikitext')

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/815893
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I7ccba690542bd53539f3ae4e4d48e48a39ad0e13
Gerrit-Change-Number: 815893
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to