aio-libs / aio-libs/aiohttp

Show where garbaged object was instantiated in warnings

オープン
#11,235 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
16.5k
フォーク
2.4k
平均マージ
17時間 22分
マージ済み PR(30日)
212

説明

### Is your feature request related to a problem?

We often get warnings of ClientSession and other objects that have not been closed properly, but it's often difficult to figure out which object is the problem and why it wasn't closed.

### Describe the solution you'd like

We can record the stack trace and include it in the warning, something along the lines of:
https://stackoverflow.com/a/22148022

This should be done under the `if DEBUG` flag to avoid performance impacts (although this may still be tricky to resolve flaky tests if we don't run them under debug mode by default).

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。