jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1316766?usp=email )
Change subject: tests: skip test_http_504 and test_follow_redirects on
ServerError
......................................................................
tests: skip test_http_504 and test_follow_redirects on ServerError
Bug: T433162
Change-Id: I4ef74a6566322dda0258c8b145e3ee2682dbfe85
---
M tests/http_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/http_tests.py b/tests/http_tests.py
index 40e7849..2044b21 100755
--- a/tests/http_tests.py
+++ b/tests/http_tests.py
@@ -132,7 +132,7 @@
Server504Error,
r'Server ([^\:]+|[^\:]+:[0-9]+)'
r' timed out'):
- http.fetch(self.httpbin + '/status/504')
+ self.fetch(self.httpbin + '/status/504')
def test_server_not_found(self) -> None:
"""Test server not found exception."""
@@ -160,7 +160,7 @@
HTTPStatus.MOVED_PERMANENTLY.value)
self.assertIn('//en.wikipedia.org/wiki/Main_Page', r.url)
- r = http.fetch(self.httpbin
+ r = self.fetch(self.httpbin
+ '/redirect-to?url=https://www.wikidata.org')
self.assertIsNotEmpty(r.history)
self.assertEqual(r.history[0].status_code, HTTPStatus.FOUND.value)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1316766?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I4ef74a6566322dda0258c8b145e3ee2682dbfe85
Gerrit-Change-Number: 1316766
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]