diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2020-03-12 11:08:07 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-03-12 11:08:07 -0700 |
commit | f2f470e192f3ddff66d79293c85e06e7e910316f (patch) | |
tree | f7c9738e495f81218a7b12e0e2ff49e323c215ff /tests/test_connection_pool.py | |
parent | b9544af2c8eb85fcbe11137e6b0797066e3d718f (diff) | |
download | redis-py-f2f470e192f3ddff66d79293c85e06e7e910316f.tar.gz |
constant for redis 6 RC candidates in tests.
replace with a '6.0.0' literal when Redis 6 is GA
Diffstat (limited to 'tests/test_connection_pool.py')
-rw-r--r-- | tests/test_connection_pool.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py index 655e88d..613ca23 100644 --- a/tests/test_connection_pool.py +++ b/tests/test_connection_pool.py @@ -7,7 +7,7 @@ import time 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, _get_client, REDIS_6_VERSION from .test_pubsub import wait_for_message @@ -215,7 +215,7 @@ class TestConnectionPoolURLParsing(object): 'password': None, } - @skip_if_server_version_lt('5.9.101') + @skip_if_server_version_lt(REDIS_6_VERSION) def test_username(self): pool = redis.ConnectionPool.from_url('redis://myuser:@localhost') assert pool.connection_class == redis.Connection @@ -227,7 +227,7 @@ class TestConnectionPoolURLParsing(object): 'password': None, } - @skip_if_server_version_lt('5.9.101') + @skip_if_server_version_lt(REDIS_6_VERSION) def test_quoted_username(self): pool = redis.ConnectionPool.from_url( 'redis://%2Fmyuser%2F%2B name%3D%24+:@localhost', @@ -265,7 +265,7 @@ class TestConnectionPoolURLParsing(object): 'password': '/mypass/+ word=$+', } - @skip_if_server_version_lt('5.9.101') + @skip_if_server_version_lt(REDIS_6_VERSION) def test_username_and_password(self): pool = redis.ConnectionPool.from_url('redis://myuser:mypass@localhost') assert pool.connection_class == redis.Connection @@ -408,7 +408,7 @@ class TestConnectionPoolUnixSocketURLParsing(object): 'password': None, } - @skip_if_server_version_lt('5.9.101') + @skip_if_server_version_lt(REDIS_6_VERSION) def test_username(self): pool = redis.ConnectionPool.from_url('unix://myuser:@/socket') assert pool.connection_class == redis.UnixDomainSocketConnection @@ -419,7 +419,7 @@ class TestConnectionPoolUnixSocketURLParsing(object): 'password': None, } - @skip_if_server_version_lt('5.9.101') + @skip_if_server_version_lt(REDIS_6_VERSION) def test_quoted_username(self): pool = redis.ConnectionPool.from_url( 'unix://%2Fmyuser%2F%2B name%3D%24+:@/socket', |