Skip to content

Commit 2921cc8

Browse files
committed
linting
1 parent 8de625e commit 2921cc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/asyncio/sentinel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,3 @@ def slave_for(
381381
)
382382
client.auto_close_connection_pool = auto_close_connection_pool
383383
return client
384-

tests/test_asyncio/test_sentinel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ async def test_reset(cluster, sentinel):
246246
@pytest.mark.parametrize("method_name", ["master_for", "slave_for"])
247247
async def test_auto_close_pool(cluster, sentinel, method_name):
248248
"""
249-
Check that the connection pool created by the sentinel client is automatically closed
249+
Check that the connection pool created by the sentinel client is
250+
automatically closed
250251
"""
251252

252253
method = getattr(sentinel, method_name)
@@ -259,7 +260,7 @@ async def mock_disconnect():
259260
nonlocal calls
260261
calls += 1
261262

262-
with mock.patch.object(pool, "disconnect", mock_disconnect) as disconnect:
263+
with mock.patch.object(pool, "disconnect", mock_disconnect):
263264
await client.close()
264265

265266
assert calls == 1

0 commit comments

Comments
 (0)