summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_pubsub.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2023-03-29 12:01:45 +0300
committerGitHub <noreply@github.com>2023-03-29 12:01:45 +0300
commit5acbde355058ab7d9c2f95bcef3993ab4134e342 (patch)
treebc90887cf2fc77d870254b5618d32a1a701c9186 /tests/test_asyncio/test_pubsub.py
parent6d886d7c7b405c0fe5d59ca192c87b438bf080f5 (diff)
downloadredis-py-5acbde355058ab7d9c2f95bcef3993ab4134e342.tar.gz
Fixing cancelled async futures (#2666)
Co-authored-by: James R T <jamestiotio@gmail.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
Diffstat (limited to 'tests/test_asyncio/test_pubsub.py')
-rw-r--r--tests/test_asyncio/test_pubsub.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_pubsub.py b/tests/test_asyncio/test_pubsub.py
index 8f3817a..ba70782 100644
--- a/tests/test_asyncio/test_pubsub.py
+++ b/tests/test_asyncio/test_pubsub.py
@@ -973,6 +973,9 @@ class TestBaseException:
# the timeout on the read should not cause disconnect
assert pubsub.connection.is_connected
+ @pytest.mark.skipif(
+ sys.version_info < (3, 8), reason="requires python 3.8 or higher"
+ )
async def test_base_exception(self, r: redis.Redis):
"""
Manually trigger a BaseException inside the parser's .read_response method