summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristján Valur Jónsson <sweskman@gmail.com>2022-06-27 11:20:03 +0000
committerGitHub <noreply@github.com>2022-06-27 14:20:03 +0300
commite5df832640fa581293c57c4d613406b9f2c40238 (patch)
tree56a5cb40b4d4f35a95999145e1c33aa1f132fd7b
parentd7d433641f3d1ea0dca2794aef064a7d3e28514e (diff)
downloadredis-py-e5df832640fa581293c57c4d613406b9f2c40238.tar.gz
Split incorrect mark into two separate marks (#2253)
-rw-r--r--tests/test_asyncio/conftest.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/test_asyncio/conftest.py b/tests/test_asyncio/conftest.py
index 52ff26b..8166588 100644
--- a/tests/test_asyncio/conftest.py
+++ b/tests/test_asyncio/conftest.py
@@ -45,10 +45,15 @@ async def _get_info(redis_url):
(False, PythonParser),
pytest.param(
(True, HiredisParser),
- marks=pytest.mark.skipif(
- not HIREDIS_AVAILABLE or 'config.REDIS_INFO["cluster_enabled"]',
- reason="hiredis is not installed or cluster mode enabled",
- ),
+ marks=[
+ pytest.mark.skipif(
+ 'config.REDIS_INFO["cluster_enabled"]',
+ reason="cluster mode enabled",
+ ),
+ pytest.mark.skipif(
+ not HIREDIS_AVAILABLE, reason="hiredis is not installed"
+ ),
+ ],
),
pytest.param(
(False, HiredisParser),