List of steps to reproduce:
The OS of macOS-latest has been changed recently. Possibly after that the test_server_not_found fails with a different NewConnectionError with Errno 8 which wasn't cached before.
https://github.com/wikimedia/pywikibot/runs/4754637227?check_suite_focus=true
What happens?:
======================================================================
ERROR: test_server_not_found (tests.http_tests.TestHttpStatus)
Test server not found exception.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/runner/work/pywikibot/pywikibot/tests/http_tests.py", line 149, in test_server_not_found
http.fetch('http://ru-sib.wikipedia.org/w/api.php',
File "/Users/runner/work/pywikibot/pywikibot/pywikibot/comms/http.py", line 414, in fetch
callback(response)
File "/Users/runner/work/pywikibot/pywikibot/pywikibot/comms/http.py", line 304, in error_handling_callback
raise response from None
File "/Users/runner/work/pywikibot/pywikibot/pywikibot/comms/http.py", line 405, in fetch
response = session.request(method, uri,
File "/Users/runner/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/Users/runner/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/Users/runner/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='ru-sib.wikipedia.org', port=80): Max retries exceeded with url: /w/api.php (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x110b643d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))Software version:
Pywikibot: [https] wikimedia-pywikibot (9f97bf2, g1, 2022/01/09, 19:11:00, master)
Release version: 7.0.0.dev0
setuptools version: 60.5.0
mwparserfromhell version: 0.6.3
wikitextparser version: 0.48.0
requests version: 2.27.1
cacerts: /Users/runner/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/certifi/cacert.pem
certificate test: ok
Python: 3.10.0 (default, Oct 18 2021, 13:51:27) [Clang 11.0.0 (clang-1100.0.33.17)]