From b8235b0d5d98ab0e2bf75bdc8005e1c115657934 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Mon, 5 Sep 2022 09:38:01 +0300 Subject: [PATCH] fixing async test for module list --- tests/test_asyncio/test_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_asyncio/test_commands.py b/tests/test_asyncio/test_commands.py index 422328a043..1242e04679 100644 --- a/tests/test_asyncio/test_commands.py +++ b/tests/test_asyncio/test_commands.py @@ -2986,7 +2986,8 @@ async def test_memory_usage(self, r: redis.Redis): @pytest.mark.onlynoncluster async def test_module_list(self, r: redis.Redis): assert isinstance(await r.module_list(), list) - assert not await r.module_list() + for x in await r.module_list(): + assert isinstance(x, dict) @pytest.mark.onlynoncluster