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
pywikibot-commits@lists.wikimedia.org