jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/351625 )
Change subject: SiteDetectionTestCase.assertSite: Skip tests on ConnectionError ......................................................................
SiteDetectionTestCase.assertSite: Skip tests on ConnectionError
Bug: T164362 Change-Id: I041c49fc0c24ac070502e87fff3c92a863667b77 --- M tests/site_detect_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py index a3cbfe8..cc3a2df 100644 --- a/tests/site_detect_tests.py +++ b/tests/site_detect_tests.py @@ -32,7 +32,7 @@ """ try: self.assertIsInstance(MWSite(url), MWSite) - except (ServerError, Timeout) as e: + except (ServerError, Timeout, ConnectionError) as e: self.skipTest(e)
def assertNoSite(self, url):
pywikibot-commits@lists.wikimedia.org