diff --git a/tests/test_client.py b/tests/test_client.py index 8b9360366dd..d2e36fec247 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -287,6 +287,8 @@ class MyResponse(ClientResponse): response = MyResponse('get', 'http://python.org') response._setup_connection(self.connection) self.assertIsInstance(response.content, aiohttp.FlowControlDataQueue) + with self.assertWarns(ResourceWarning): + del response class ClientRequestTests(unittest.TestCase):