Skip to content

Commit 6a99b49

Browse files
authored
Merge branch 'master' into feature/sentinel-blocking-connection-pool
2 parents 3f7daba + b4fcbaa commit 6a99b49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_asyncio/test_cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ async def mock_aclose():
313313
called += 1
314314

315315
with mock.patch.object(cluster, "aclose", mock_aclose):
316-
await cluster.close()
316+
with pytest.warns(DeprecationWarning, match=r"Use aclose\(\) instead"):
317+
await cluster.close()
317318
assert called == 1
318319
await cluster.aclose()
319320

0 commit comments

Comments
 (0)