From 2a9a76e2b335d50534c10d600dceed266b276bd0 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sun, 22 Mar 2026 23:44:19 +0100 Subject: [PATCH] Skip tests for slow servers causing read timeouts --- tests/test_contribute.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_contribute.py b/tests/test_contribute.py index cb63f5997..76eda4181 100644 --- a/tests/test_contribute.py +++ b/tests/test_contribute.py @@ -38,6 +38,10 @@ def test_links_are_valid(self): self.assertTrue( 200 <= r.status < 400, f'{link} returned {r.status}' ) + except urllib3.exceptions.MaxRetryError as e: + if isinstance(e.reason, urllib3.exceptions.ReadTimeoutError): + self.skipTest(f'{link}: read timeout, skipping slow server') + self.fail(f'{link}: {e}') except Exception as e: self.fail(f'{link}: {e}')