Properly close sessions in _SessionRequestContextManager#2441
Properly close sessions in _SessionRequestContextManager#2441asvetlov merged 2 commits intoaio-libs:2.3from hynek:2.3
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.3 #2441 +/- ##
=======================================
Coverage 97.23% 97.23%
=======================================
Files 39 39
Lines 8224 8224
Branches 1442 1442
=======================================
Hits 7997 7997
Misses 98 98
Partials 129 129Continue to review full report at Codecov.
|
|
Thanks! |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
What do these changes do?
Fix a bunch of
DeprecationWarning: ClientSession.close() is a coroutine self._session.close().Also changed bare except to BaseException which is equivalent but won’t raise a warning on current flake8s. I’m aware current master catches Exception, but that seems like backward-combat violation in a point release.
Are there changes in behavior for the user?
Less warnings. I have a bit of a hard time writing tests because the test suite doesn’t work on my machine…
Related issue number
Didn’t find any.
Checklist
CONTRIBUTORS.txtchangesfolder<issue_id>.<type>for example (588.bug)issue_idchange it to the pr id after creating the pr.feature: Signifying a new feature..bugfix: Signifying a bug fix..doc: Signifying a documentation improvement..removal: Signifying a deprecation or removal of public API..misc: A ticket has been closed, but it is not of interest to users.