MCPcopy
hub / github.com/urllib3/urllib3 / test_retry_method_not_allowed

Method test_retry_method_not_allowed

test/test_retry.py:340–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 assert retry.history == test_history3
339
340 def test_retry_method_not_allowed(self) -> None:
341 error = ReadTimeoutError(DUMMY_POOL, "/", "read timed out")
342 retry = Retry()
343 with pytest.raises(ReadTimeoutError):
344 retry.increment(method="POST", error=error)
345
346 def test_retry_default_remove_headers_on_redirect(self) -> None:
347 retry = Retry()

Callers

nothing calls this directly

Calls 3

incrementMethod · 0.95
ReadTimeoutErrorClass · 0.90
RetryClass · 0.90

Tested by

no test coverage detected