Skip to content

Commit

Permalink
Don't run command parser tests with HIREDIS
Browse files Browse the repository at this point in the history
  • Loading branch information
gerzse committed Jun 11, 2024
1 parent 6367be6 commit 3b7f6bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_command_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from redis._parsers import CommandsParser
from redis.utils import HIREDIS_AVAILABLE

from .conftest import (
assert_resp_response,
Expand All @@ -8,6 +9,9 @@
)


# The response to COMMAND contains maps inside sets, which are not handled
# by the hiredis-py parser (see https://github.com/redis/hiredis-py/issues/188)
@pytest.mark.skipif(HIREDIS_AVAILABLE, reason="PythonParser only")
class TestCommandsParser:
def test_init_commands(self, r):
commands_parser = CommandsParser(r)
Expand Down

0 comments on commit 3b7f6bf

Please sign in to comment.