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

Change subject: [tests] Skip memento_tests on requests.exceptions.ReadTimeout
......................................................................

[tests] Skip memento_tests on requests.exceptions.ReadTimeout

Change-Id: I93719b1ef5f39ed86b6be80d48f29b33aec293ff
---
M tests/memento_tests.py
1 file changed, 3 insertions(+), 1 deletion(-)

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



diff --git a/tests/memento_tests.py b/tests/memento_tests.py
index cfeb15e..6299f6b 100755
--- a/tests/memento_tests.py
+++ b/tests/memento_tests.py
@@ -11,6 +11,7 @@
 from urllib.parse import urlparse

 from requests.exceptions import ConnectionError as RequestsConnectionError
+from requests.exceptions import ReadTimeout

 from tests.aspects import TestCase, require_modules
 from tests.utils import skipping
@@ -29,7 +30,8 @@

         when = (datetime.strptime(date_string, '%Y%m%d')
                 if date_string else None)
-        with skipping(RequestsConnectionError, MementoClientException):
+        with skipping(ReadTimeout, RequestsConnectionError,
+                      MementoClientException):
             result = get_closest_memento_url(url, when, self.timegate_uri)
         return result


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/832742
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: I93719b1ef5f39ed86b6be80d48f29b33aec293ff
Gerrit-Change-Number: 832742
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