Skip to content

Commit 64a5f70

Browse files
committed
Make skip_ifmodversion_lt skip not installed modules
1 parent ab36c7a commit 64a5f70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def skip_ifmodversion_lt(min_version: str, module_name: str):
200200
check = version < mv
201201
return pytest.mark.skipif(check, reason="Valkey module version")
202202

203-
raise AttributeError(f"No valkey module named {module_name}")
203+
return pytest.mark.skipif(True, reason=f"No valkey module named {module_name}")
204204

205205

206206
def skip_if_nocryptography() -> _TestDecorator:

0 commit comments

Comments
 (0)