pytest suppresses object allocation info in ResourceWarnings when PYTHONTRACEMALLOC is enabled #7731
Labels
plugin: warnings
related to the warnings builtin plugin
type: enhancement
new feature or API change, should be merged into features branch
Uh oh!
There was an error while loading. Please reload this page.
Recent Python 3 versions (I think 3.7+?) show additional information in ResourceWarnings when you enable PYTHONTRACEMALLOC:
However pytest suppresses this somehow:
It's pretty much impossible to debug ResourceWarnings without seeing where the objects were created, so I'd love any suggestions.
(I have tried playing with pytest's command line options like -Wnone, --disable-warnings or -p no:warnings, but either I get the same uninformative ResourceWarning, or I don't get any warning at all. In none of the cases I managed to see the object allocation stack trace.)
The text was updated successfully, but these errors were encountered: