Skip to content

Commit 7fd19d7

Browse files
committed
skip tests
1 parent 0801cf8 commit 7fd19d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_function.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22

33
from redis.exceptions import ResponseError
4+
from .conftest import skip_if_server_version_lt
45

56
function = "redis.register_function('myfunc', function(keys, args) return args[1] end)"
67
function2 = "redis.register_function('hello', function() return 'Hello World' end)"
@@ -10,7 +11,7 @@
1011
return redis.call('GET', keys[1]) end)"
1112

1213

13-
# @skip_if_server_version_lt("7.0.0") turn on after redis 7 release
14+
@skip_if_server_version_lt("7.0.0")
1415
class TestFunction:
1516
@pytest.fixture(autouse=True)
1617
def reset_functions(self, unstable_r):

0 commit comments

Comments
 (0)