From 343bbd35ed5483fdaa07b1ec28cc52430f4ac2e0 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 14 Jul 2014 16:55:51 +0300 Subject: [PATCH] Suppress resource warning --- tests/test_client.py | 2 ++ 1 file changed, 2 insertions(+) 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):