summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_completer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli_tests/test_completer.py')
-rw-r--r--tests/cli_tests/test_completer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cli_tests/test_completer.py b/tests/cli_tests/test_completer.py
index 4ffd058..adf8040 100644
--- a/tests/cli_tests/test_completer.py
+++ b/tests/cli_tests/test_completer.py
@@ -1,3 +1,4 @@
+from packaging.version import parse as version_parse # noqa: F401
import pytest
@@ -37,7 +38,7 @@ def test_command_completion_when_space_command(cli, clean_redis):
cli.expect("command info")
-@pytest.mark.skipif("int(os.environ['REDIS_VERSION']) < 6")
+@pytest.mark.skipif("version_parse(os.environ['REDIS_VERSION']) < version_parse('6')")
def test_username_completer(cli, iredis_client):
iredis_client.execute("acl setuser", "foo1")
iredis_client.execute("acl setuser", "bar2")