summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection.py')
-rw-r--r--tests/test_connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index 7c44768..0071aca 100644
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -8,13 +8,14 @@ from .conftest import skip_if_server_version_lt
@pytest.mark.skipif(HIREDIS_AVAILABLE, reason='PythonParser only')
+@pytest.mark.onlynoncluster
def test_invalid_response(r):
raw = b'x'
parser = r.connection._parser
with mock.patch.object(parser._buffer, 'readline', return_value=raw):
with pytest.raises(InvalidResponse) as cm:
parser.read_response()
- assert str(cm.value) == 'Protocol Error: %r' % raw
+ assert str(cm.value) == f'Protocol Error: {raw!r}'
@skip_if_server_version_lt('4.0.0')