summaryrefslogtreecommitdiff
path: root/tests/test_connection_pool.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection_pool.py')
-rw-r--r--tests/test_connection_pool.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py
index 6fedec6..521f520 100644
--- a/tests/test_connection_pool.py
+++ b/tests/test_connection_pool.py
@@ -7,7 +7,11 @@ from unittest import mock
from threading import Thread
from redis.connection import ssl_available, to_bool
-from .conftest import skip_if_server_version_lt, _get_client
+from .conftest import (
+ skip_if_server_version_lt,
+ skip_if_redis_enterprise,
+ _get_client
+)
from .test_pubsub import wait_for_message
@@ -481,6 +485,7 @@ class TestConnection:
assert not pool._available_connections[0]._sock
@skip_if_server_version_lt('2.8.8')
+ @skip_if_redis_enterprise
def test_busy_loading_disconnects_socket(self, r):
"""
If Redis raises a LOADING error, the connection should be
@@ -491,6 +496,7 @@ class TestConnection:
assert not r.connection._sock
@skip_if_server_version_lt('2.8.8')
+ @skip_if_redis_enterprise
def test_busy_loading_from_pipeline_immediate_command(self, r):
"""
BusyLoadingErrors should raise from Pipelines that execute a
@@ -506,6 +512,7 @@ class TestConnection:
assert not pool._available_connections[0]._sock
@skip_if_server_version_lt('2.8.8')
+ @skip_if_redis_enterprise
def test_busy_loading_from_pipeline(self, r):
"""
BusyLoadingErrors should be raised from a pipeline execution
@@ -521,6 +528,7 @@ class TestConnection:
assert not pool._available_connections[0]._sock
@skip_if_server_version_lt('2.8.8')
+ @skip_if_redis_enterprise
def test_read_only_error(self, r):
"READONLY errors get turned in ReadOnlyError exceptions"
with pytest.raises(redis.ReadOnlyError):
@@ -546,6 +554,7 @@ class TestConnection:
'path=/path/to/socket,db=0',
)
+ @skip_if_redis_enterprise
def test_connect_no_auth_supplied_when_required(self, r):
"""
AuthenticationError should be raised when the server requires a
@@ -555,6 +564,7 @@ class TestConnection:
r.execute_command('DEBUG', 'ERROR',
'ERR Client sent AUTH, but no password is set')
+ @skip_if_redis_enterprise
def test_connect_invalid_password_supplied(self, r):
"AuthenticationError should be raised when sending the wrong password"
with pytest.raises(redis.AuthenticationError):