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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py
index 613ca23..080e3df 100644
--- a/tests/test_connection_pool.py
+++ b/tests/test_connection_pool.py
@@ -393,8 +393,12 @@ class TestConnectionPoolURLParsing(object):
}
def test_invalid_scheme_raises_error(self):
- with pytest.raises(ValueError):
+ with pytest.raises(ValueError) as cm:
redis.ConnectionPool.from_url('localhost')
+ assert str(cm.value) == (
+ 'Redis URL must specify one of the following schemes '
+ '(redis://, rediss://, unix://)'
+ )
class TestConnectionPoolUnixSocketURLParsing(object):