Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/waterdata_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@
reruns=2,
reruns_delay=5,
only_rerun=[
r"(?:RateLimited|RuntimeError):\s*(?:429|5\d\d):", # _raise_for_non_200 output
# Transient HTTP errors (429 / 5xx) on the direct path: RateLimited /
# ServiceUnavailable carry a "<status>: ..." message (the RuntimeError
# shape is kept for any legacy call site).
r"(?:RateLimited|ServiceUnavailable|RuntimeError):\s*(?:429|5\d\d):",
# The chunked fan-out wraps a transient sub-request as a ChunkInterrupted
# subclass (QuotaExhausted for 429, ServiceInterrupted for 5xx), whose
# message has no leading status token.
r"(?:QuotaExhausted|ServiceInterrupted):",
r"Connect(ion)?Error", # requests' ConnectionError + httpx' ConnectError
r"ReadTimeout|ConnectTimeout|Timeout",
],
Expand Down