We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49e656 commit 1f051d6Copy full SHA for 1f051d6
tests/conftest.py
@@ -131,6 +131,7 @@ def pytest_sessionstart(session):
131
enterprise = info["enterprise"]
132
except redis.ConnectionError:
133
# provide optimistic defaults
134
+ info = {}
135
version = "10.0.0"
136
arch_bits = 64
137
cluster_enabled = False
@@ -145,9 +146,7 @@ def pytest_sessionstart(session):
145
146
# module info
147
try:
148
REDIS_INFO["modules"] = info["modules"]
- except redis.exceptions.ConnectionError:
149
- pass
150
- except KeyError:
+ except (KeyError, redis.exceptions.ConnectionError):
151
pass
152
153
if cluster_enabled:
0 commit comments