Skip to content

Commit

Permalink
skip test for old python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Aug 3, 2024
1 parent ed0e09d commit 38b798b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [
version = "2.23.5"
description = "Python implementation of redis API, can be used for testing purposes."
readme = "README.md"
keywords = ["redis", "RedisJson", "RedisBloom","tests", "redis-stack"]
keywords = ["redis", "RedisJson", "RedisBloom", "tests", "redis-stack"]
authors = [
"Daniel Moran <[email protected]>",
"Bruce Merry <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion test/test_asyncredis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import re
import sys

Expand Down Expand Up @@ -329,6 +328,9 @@ async def test_init_args():

@pytest.mark.asyncio
async def test_cause_fakeredis_bug(async_redis):
if sys.version_info < (3, 11):
return
import asyncio
async def worker_task():
assert await async_redis.rpush("list1", "list1_val") == 1 # 1
assert await async_redis.blpop("list2") == (b"list2", b"list2_val") # 4
Expand Down

0 comments on commit 38b798b

Please sign in to comment.