Improve aiohttp default clientsession close with connector (#5208)

This commit is contained in:
Pascal Vizeli authored and GitHub committed 2017-01-07 21:11:19 +01:00
1 parent 81922b88a2
commit ca4a857532
2 files changed
+5 -3

No files matched your search

+1 -2
View File
@@ -284,8 +284,7 @@ class TestMediaPlayerWeb(unittest.TestCase):
def get(self, url):
return MockResponse()
@asyncio.coroutine
def close(self):
def detach(self):
pass
self.hass.data[DATA_CLIENTSESSION] = MockWebsession()