C:\pwb\GIT\core>pwb.py tests/site_tests -v TestUserContribsWithoutUser tests: max_retries reduced from 25 to 1 test_invalid_range (__main__.TestUserContribsWithoutUser) Test the site.usercontribs() method with invalid parameters. ... ok test_user_prefix (__main__.TestUserContribsWithoutUser) Test the site.usercontribs() method with userprefix. ... ok test_user_prefix_range (__main__.TestUserContribsWithoutUser) Test the site.usercontribs() method. ... ERROR: Traceback (most recent call last ): File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1953, in submit body=body, headers=headers) File "C:\pwb\GIT\core\pywikibot\tools\__init__.py", line 1414, in wrapper return obj(*__args, **__kw) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 279, in request r = fetch(baseuri, method, body, headers, **kwargs) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 434, in fetch error_handling_callback(request) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 352, in error_handling_ca llback raise request.data ReadTimeout: HTTPSConnectionPool(host='de.wikipedia.org', port=443): Read timed out. (read timeout=30) WARNING: Waiting 5 seconds before retrying. ERROR: Traceback (most recent call last): File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1953, in submit body=body, headers=headers) File "C:\pwb\GIT\core\pywikibot\tools\__init__.py", line 1414, in wrapper return obj(*__args, **__kw) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 279, in request r = fetch(baseuri, method, body, headers, **kwargs) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 434, in fetch error_handling_callback(request) File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 352, in error_handling_ca llback raise request.data ReadTimeout: HTTPSConnectionPool(host='de.wikipedia.org', port=443): Read timed out. (read timeout=30) ERROR 65.887s test_user_prefix_reverse (__main__.TestUserContribsWithoutUser) Test the site.usercontribs() method with range reversed. ... 20.991s ok ====================================================================== ERROR: test_user_prefix_range (__main__.TestUserContribsWithoutUser) Test the site.usercontribs() method. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\site_tests.py", line 1494, in test_user_prefix_range total=5): File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2739, in __iter__ self.data = self.request.submit() File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1977, in submit self.wait() File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2191, in wait raise TimeoutError("Maximum retries attempted without success.") TimeoutError: Maximum retries attempted without success. ---------------------------------------------------------------------- Ran 4 tests in 89.061s FAILED (errors=1) C:\pwb\GIT\core>
Sometimes it also fails for test_user_prefix_reverse,
see https://travis-ci.org/wikimedia/pywikibot-core/jobs/128367609