summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_completer.py
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-11-04 18:52:12 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-11-04 18:52:12 +0000
commita596894f2d782b9df54c026696e55da1267f7936 (patch)
treee2696ad38feb91700ac875966e6aa0b30e732566 /tests/cli_tests/test_completer.py
parentAdding upstream version 1.13.1. (diff)
downloadiredis-a596894f2d782b9df54c026696e55da1267f7936.tar.xz
iredis-a596894f2d782b9df54c026696e55da1267f7936.zip
Adding upstream version 1.14.0.upstream/1.14.0
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
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")