@@ -57,7 +57,7 @@ async def test_do_not_auto_disconnect_redis_created_pool(self, r2: redis.Redis):
57
57
assert r2 .connection_pool ._in_use_connections == {new_conn }
58
58
assert new_conn .is_connected
59
59
assert len (r2 .connection_pool ._available_connections ) == 1
60
- assert r2 .connection_pool ._list (available_connections )[0 ].is_connected
60
+ assert r2 .connection_pool .list (available_connections )[0 ].is_connected
61
61
62
62
async def test_auto_release_override_true_manual_created_pool (self , r : redis .Redis ):
63
63
assert r .auto_close_connection_pool is True , "This is from the class fixture"
@@ -85,7 +85,7 @@ async def test_negate_auto_close_client_pool(
85
85
await r .aclose (close_connection_pool = False )
86
86
assert not self .has_no_connected_connections (r .connection_pool )
87
87
assert r .connection_pool ._in_use_connections == {new_conn }
88
- assert r .connection_pool ._list (available_connections )[0 ].is_connected
88
+ assert r .connection_pool .list (available_connections )[0 ].is_connected
89
89
assert self .get_total_connected_connections (r .connection_pool ) == 2
90
90
91
91
@@ -579,7 +579,7 @@ async def test_on_connect_error(self):
579
579
await bad_connection .info ()
580
580
pool = bad_connection .connection_pool
581
581
assert len (pool ._available_connections ) == 1
582
- assert not pool ._list (available_connections )[0 ]._reader
582
+ assert not pool .list (available_connections )[0 ]._reader
583
583
584
584
@pytest .mark .onlynoncluster
585
585
@skip_if_server_version_lt ("2.8.8" )
@@ -610,7 +610,7 @@ async def test_busy_loading_from_pipeline_immediate_command(self, r):
610
610
pool = r .connection_pool
611
611
assert not pipe .connection
612
612
assert len (pool ._available_connections ) == 1
613
- assert not pool ._list (available_connections )[0 ]._reader
613
+ assert not pool .list (available_connections )[0 ]._reader
614
614
615
615
@pytest .mark .onlynoncluster
616
616
@skip_if_server_version_lt ("2.8.8" )
@@ -627,7 +627,7 @@ async def test_busy_loading_from_pipeline(self, r):
627
627
pool = r .connection_pool
628
628
assert not pipe .connection
629
629
assert len (pool ._available_connections ) == 1
630
- assert not pool ._list (available_connections )[0 ]._reader
630
+ assert not pool .list (available_connections )[0 ]._reader
631
631
632
632
@skip_if_server_version_lt ("2.8.8" )
633
633
@skip_if_redis_enterprise ()
0 commit comments