We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8de625e commit 0d17f06Copy full SHA for 0d17f06
tests/test_asyncio/test_sentinel.py
@@ -246,7 +246,8 @@ async def test_reset(cluster, sentinel):
246
@pytest.mark.parametrize("method_name", ["master_for", "slave_for"])
247
async def test_auto_close_pool(cluster, sentinel, method_name):
248
"""
249
- Check that the connection pool created by the sentinel client is automatically closed
+ Check that the connection pool created by the sentinel client is
250
+ automatically closed
251
252
253
method = getattr(sentinel, method_name)
@@ -259,7 +260,7 @@ async def mock_disconnect():
259
260
nonlocal calls
261
calls += 1
262
- with mock.patch.object(pool, "disconnect", mock_disconnect) as disconnect:
263
+ with mock.patch.object(pool, "disconnect", mock_disconnect):
264
await client.close()
265
266
assert calls == 1
0 commit comments