summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index bb682f7..31d3fbd 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -31,12 +31,10 @@ def pytest_addoption(parser):
def _get_info(redis_url):
client = redis.Redis.from_url(redis_url)
info = client.info()
- try:
- client.execute_command("CONFIG SET maxmemory 5555555")
- client.execute_command("CONFIG SET maxmemory 0")
- info["enterprise"] = False
- except redis.exceptions.ResponseError:
+ if 'dping' in client.__commands__:
info["enterprise"] = True
+ else:
+ info["enterprise"] = False
client.connection_pool.disconnect()
return info
@@ -57,6 +55,8 @@ def pytest_sessionstart(session):
REDIS_INFO["modules"] = info["modules"]
except redis.exceptions.ConnectionError:
pass
+ except KeyError:
+ pass
def skip_if_server_version_lt(min_version):