Skip to content

Commit 699ec35

Browse files
committed
late eval of the skip condition
at module import time, the REDIS_INFO dict hasn't been initialized.
1 parent 6da8086 commit 699ec35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_asyncio/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ async def _get_info(redis_url):
3939
pytest.param(
4040
(True, PythonParser),
4141
marks=pytest.mark.skipif(
42-
REDIS_INFO["cluster_enabled"], reason="cluster mode enabled"
42+
'REDIS_INFO["cluster_enabled"]', reason="cluster mode enabled"
4343
),
4444
),
4545
(False, PythonParser),
4646
pytest.param(
4747
(True, HiredisParser),
4848
marks=pytest.mark.skipif(
49-
not HIREDIS_AVAILABLE or REDIS_INFO["cluster_enabled"],
49+
not HIREDIS_AVAILABLE or 'REDIS_INFO["cluster_enabled"]',
5050
reason="hiredis is not installed or cluster mode enabled",
5151
),
5252
),

0 commit comments

Comments
 (0)