Skip to content

Commit 0d17f06

Browse files
committedAug 22, 2023
fix
1 parent 8de625e commit 0d17f06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎tests/test_asyncio/test_sentinel.py

+3-2
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)