diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 6 | ||||
-rw-r--r-- | tests/test_connection_pool.py | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index af52fbd..556df84 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -653,12 +653,14 @@ class TestRedisCommands: def test_quit(self, r): assert r.quit() - @skip_if_server_version_lt('2.8.12') + @skip_if_server_version_lt("2.8.12") + @pytest.mark.onlynoncluster def test_role(self, r): - assert r.role()[0] == b'master' + assert r.role()[0] == b"master" assert isinstance(r.role()[1], int) assert isinstance(r.role()[2], list) + @pytest.mark.onlynoncluster def test_slowlog_get(self, r, slowlog): assert r.slowlog_reset() unicode_string = chr(3456) + "abcd" + chr(3421) diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py index 276e77c..138fcad 100644 --- a/tests/test_connection_pool.py +++ b/tests/test_connection_pool.py @@ -450,7 +450,7 @@ class TestConnectionPoolUnixSocketURLParsing: pass pool = redis.ConnectionPool.from_url( - 'unix:///socket', connection_class=MyConnection + "unix:///socket", connection_class=MyConnection ) assert pool.connection_class == MyConnection @@ -469,7 +469,7 @@ class TestSSLConnectionURLParsing: pass pool = redis.ConnectionPool.from_url( - 'rediss://my.host', connection_class=MyConnection + "rediss://my.host", connection_class=MyConnection ) assert pool.connection_class == MyConnection |