Skip to content

Commit

Permalink
py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Sep 26, 2024
1 parent d8942ff commit e843d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fakeredis/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def __init__(

@classmethod
def from_url(cls, *args: Any, **kwargs: Any) -> Self:
kwargs.setdefault("version", "7.4")
kwargs.setdefault("server_type", "redis")
pool = redis.ConnectionPool.from_url(*args, **kwargs)
# Now override how it creates connections
pool.connection_class = FakeConnection
Expand Down

0 comments on commit e843d8a

Please sign in to comment.