File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
import pytest_asyncio
5
5
from redis ._cache import _LocalCache
6
6
from redis .utils import HIREDIS_AVAILABLE
7
+ from tests .conftest import skip_if_server_version_lt
7
8
8
9
9
10
@pytest_asyncio .fixture
@@ -15,6 +16,7 @@ async def r(request, create_redis):
15
16
16
17
17
18
@pytest .mark .skipif (HIREDIS_AVAILABLE , reason = "PythonParser only" )
19
+ @skip_if_server_version_lt ("7.4.0" )
18
20
class TestLocalCache :
19
21
@pytest .mark .onlynoncluster
20
22
@pytest .mark .parametrize ("r" , [{"cache" : _LocalCache ()}], indirect = True )
@@ -187,6 +189,7 @@ async def test_csc_not_cause_disconnects(self, r):
187
189
188
190
@pytest .mark .skipif (HIREDIS_AVAILABLE , reason = "PythonParser only" )
189
191
@pytest .mark .onlycluster
192
+ @skip_if_server_version_lt ("7.4.0" )
190
193
class TestClusterLocalCache :
191
194
@pytest .mark .parametrize ("r" , [{"cache" : _LocalCache ()}], indirect = True )
192
195
async def test_get_from_cache (self , r , r2 ):
Original file line number Diff line number Diff line change 4
4
import redis
5
5
from redis ._cache import _LocalCache
6
6
from redis .utils import HIREDIS_AVAILABLE
7
- from tests .conftest import _get_client
7
+ from tests .conftest import _get_client , skip_if_server_version_lt
8
8
9
9
10
10
@pytest .fixture ()
@@ -19,6 +19,7 @@ def r(request):
19
19
20
20
21
21
@pytest .mark .skipif (HIREDIS_AVAILABLE , reason = "PythonParser only" )
22
+ @skip_if_server_version_lt ("7.4.0" )
22
23
class TestLocalCache :
23
24
@pytest .mark .onlynoncluster
24
25
@pytest .mark .parametrize ("r" , [{"cache" : _LocalCache ()}], indirect = True )
@@ -192,6 +193,7 @@ def test_csc_not_cause_disconnects(self, r):
192
193
193
194
@pytest .mark .skipif (HIREDIS_AVAILABLE , reason = "PythonParser only" )
194
195
@pytest .mark .onlycluster
196
+ @skip_if_server_version_lt ("7.4.0" )
195
197
class TestClusterLocalCache :
196
198
@pytest .mark .parametrize ("r" , [{"cache" : _LocalCache ()}], indirect = True )
197
199
def test_get_from_cache (self , r , r2 ):
You can’t perform that action at this time.
0 commit comments