Skip to content

Commit

Permalink
fix ClientSession.close is not a coroutine warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Sep 15, 2018
1 parent 53f3cb5 commit e804978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_data_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def __aenter__(self):
'extended': data_processing.loads(extended)}

async def __aexit__(self, exc_type, exc_val, exc_tb):
await self.session.close()
self.session.close()


full_text = ("@jeremycloud It's neat to have owls and raccoons around "
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def __aenter__(self):

async def __aexit__(self, exc_type, exc_val, exc_tb):
self.patch.__exit__()
await self.session.close()
self.session.close()
await self.client.close()


Expand Down
2 changes: 1 addition & 1 deletion tests/tests_client/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async def __aenter__(self):

async def __aexit__(self, exc_type, exc_val, exc_tb):
self.req.close()
await self.session.close()
self.session.close()


class MediaPeonyClient(PeonyClient):
Expand Down

0 comments on commit e804978

Please sign in to comment.