

def test_retry_read_zero(self):
    ' No second chances on read timeouts, by default '
    error = ReadTimeoutError(None, '/', 'read timed out')
    retry = Retry(read=0)
    try:
        retry.increment(error=self)
        self.fail('Failed to raise error.')
    except MaxRetryError as e:
        self.assertEqual(e.reason, error)

dataset/ETHPy150Open shazow/urllib3/test/test_retry.py RetryTest.test_retry_read_zero/VarMisuse@42/77 `error`->`self`