bloomberg / pytest-memray

pytest plugin for easy integration of memray memory profiler
https://pytest-memray.readthedocs.io/en/latest/
Apache License 2.0
338 stars 25 forks source link

Ensure the "longrepr" attribute is set on failing tests #4

Closed pablogsal closed 2 years ago

pablogsal commented 2 years ago

Some pytest functionality relies of the fact that the "longrepr" attribute is not None for failing tests. According to pytest type annotations this can be a string explaining why the test failed or some complicated traceback object. As we cannot easily make a traceback object, we can simply put a string explaining why the test failed.

closes: #3