Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Oct 13, 2023
1 parent e86bdce commit c497789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_asyncio/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ async def test_connection_garbage_collection(request):

with mock.patch.object(conn, "_reader"):
with mock.patch.object(conn, "_writer") as a:
# we cannot, in unittests, or from asyncio, reliably trigger garbage collection
# so we must just invoke the handler
# we cannot, in unittests, or from asyncio, reliably trigger
# garbage collection so we must just invoke the handler
with pytest.warns(ResourceWarning):
conn.__del__()
assert a.close.called
Expand Down

0 comments on commit c497789

Please sign in to comment.