class_docstr: Test that the Connection constructors properly handles Retry objects
class_docstr_tok: ["Test","that","the","Connection","constructors","properly","handles","Retry","objects"]
code: def test_retry_on_error_retry(self, Class, retries):
      c = Class(
          retry_on_error=[ReadOnlyError],
          retry=Retry(NoBackoff(), retries),
      )
      assert c.retry_on_error == [ReadOnlyError]
      assert isinstance(c.retry, Retry)
      assert c.retry._retries == retries
  
imports: from unittest.mock import patch
  import pytest
  from redis.backoff import ExponentialBackoff, NoBackoff
  from redis.client import Redis
  from redis.connection import Connection, UnixDomainSocketConnection
  from redis.exceptions import BusyLoadingError, ConnectionError, ReadOnlyError, TimeoutError
  from redis.retry import Retry
  from .conftest import _get_client
label_desc: Use image node_id 6 for calling the TestConnectionConstructorWithRetry obj's underlying member method code with example usage: obj.test_retry_on_error_retry(Class, retries) without return types