Skip to content

Commit 803fce0

Browse files
committed
Updated test cases
1 parent 54a86e8 commit 803fce0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_asyncio/test_connection_pool.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,7 @@ def test_connect_from_url_tcp(self):
647647
connection = redis.Redis.from_url("redis://localhost")
648648
pool = connection.connection_pool
649649

650-
assert re.match(
651-
r"< .*?([^\.]+) \( < .*?([^\.]+) \( (.+) \) > \) >", repr(pool), re.VERBOSE
652-
).groups() == (
650+
assert re.match("(.*)<(.*)<(.*)>>", repr(pool)).groups() == (
653651
"ConnectionPool",
654652
"Connection",
655653
"host=localhost,port=6379,db=0",
@@ -659,9 +657,7 @@ def test_connect_from_url_unix(self):
659657
connection = redis.Redis.from_url("unix:///path/to/socket")
660658
pool = connection.connection_pool
661659

662-
assert re.match(
663-
r"< .*?([^\.]+) \( < .*?([^\.]+) \( (.+) \) > \) >", repr(pool), re.VERBOSE
664-
).groups() == (
660+
assert re.match("(.*)<(.*)<(.*)>>", repr(pool)).groups() == (
665661
"ConnectionPool",
666662
"UnixDomainSocketConnection",
667663
"path=/path/to/socket,db=0",

0 commit comments

Comments
 (0)