File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,8 @@ async def test_reset(cluster, sentinel):
246
246
@pytest .mark .parametrize ("method_name" , ["master_for" , "slave_for" ])
247
247
async def test_auto_close_pool (cluster , sentinel , method_name ):
248
248
"""
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
250
251
"""
251
252
252
253
method = getattr (sentinel , method_name )
@@ -259,7 +260,7 @@ async def mock_disconnect():
259
260
nonlocal calls
260
261
calls += 1
261
262
262
- with mock .patch .object (pool , "disconnect" , mock_disconnect ) as disconnect :
263
+ with mock .patch .object (pool , "disconnect" , mock_disconnect ):
263
264
await client .close ()
264
265
265
266
assert calls == 1
You can’t perform that action at this time.
0 commit comments