jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] Skip memento_tests on requests.exceptions.ReadTimeout

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

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 change 832742. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I93719b1ef5f39ed86b6be80d48f29b33aec293ff
Gerrit-Change-Number: 832742
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged