MCPcopy
hub / github.com/urllib3/urllib3 / test_retry_higher_total_loses

Method test_retry_higher_total_loses

test/test_retry.py:46–53  ·  view source on GitHub ↗

A lower connect timeout than the total is honored

(self)

Source from the content-addressed store, hash-verified

44 assert e.value.reason == error
45
46 def test_retry_higher_total_loses(self) -> None:
47 """A lower connect timeout than the total is honored"""
48 error = ConnectTimeoutError()
49 retry = Retry(connect=2, total=3)
50 retry = retry.increment(error=error)
51 retry = retry.increment(error=error)
52 with pytest.raises(MaxRetryError):
53 retry.increment(error=error)
54
55 def test_retry_higher_total_loses_vs_read(self) -> None:
56 """A lower read timeout than the total is honored"""

Callers

nothing calls this directly

Calls 3

incrementMethod · 0.95
ConnectTimeoutErrorClass · 0.90
RetryClass · 0.90

Tested by

no test coverage detected