Skip to content

Commit c3f964a

Browse files
committed
Added correct annotations
1 parent 22609a2 commit c3f964a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/test_connection_pool.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
import redis
1010
from redis.cache import CacheConfig
1111
from redis.connection import CacheProxyConnection, Connection, to_bool
12-
from redis.utils import SSL_AVAILABLE
13-
14-
from .conftest import _get_client, skip_if_redis_enterprise, skip_if_server_version_lt
12+
from redis.utils import HIREDIS_AVAILABLE, SSL_AVAILABLE
13+
14+
from .conftest import (
15+
_get_client,
16+
skip_if_redis_enterprise,
17+
skip_if_resp_version,
18+
skip_if_server_version_lt,
19+
)
1520
from .test_pubsub import wait_for_message
1621

1722

@@ -197,6 +202,10 @@ def test_repr_contains_db_info_unix(self):
197202
expected = "path=abc,db=0,client_name=test-client"
198203
assert expected in repr(pool)
199204

205+
@pytest.mark.skipif(HIREDIS_AVAILABLE, reason="PythonParser only")
206+
@pytest.mark.onlynoncluster
207+
@skip_if_resp_version(2)
208+
@skip_if_server_version_lt("7.4.0")
200209
def test_initialise_pool_with_cache(self, master_host):
201210
pool = redis.BlockingConnectionPool(
202211
connection_class=Connection,

0 commit comments

Comments
 (0)