Skip to content

Commit

Permalink
Make TestUnclosedClient pass again
Browse files Browse the repository at this point in the history
For whatever reason, version upgrades now cause an "unclosed transport"
ResourceWarning to be emitted if a client is not closed before the event
loop. Suppress it.
  • Loading branch information
bmerry committed Apr 16, 2024
1 parent 10c73e9 commit fc97774
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ def callback(reader, writer):
server.close()
await server.wait_closed()

@pytest.mark.filterwarnings("ignore:unclosed transport")
def test(self) -> None:
loop = async_solipsism.EventLoop()
with pytest.warns(ResourceWarning, match="unclosed Client"):
Expand Down

0 comments on commit fc97774

Please sign in to comment.