MCPcopy
hub / github.com/redis/redis-py / _fail_inf

Method _fail_inf

tests/test_retry.py:155–158  ·  view source on GitHub ↗
(self, error)

Source from the content-addressed store, hash-verified

153 self.actual_failures += 1
154
155 def _fail_inf(self, error):
156 self.actual_failures += 1
157 if self.actual_failures == 5:
158 raise ConnectionError()
159
160 @pytest.mark.parametrize("retries", range(10))
161 def test_retry(self, retries):

Callers

nothing calls this directly

Calls 1

ConnectionErrorClass · 0.90

Tested by

no test coverage detected