bloomberg / pytest-memray

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

Fix incompatibility with the 'flaky' plugin #50

Closed pablogsal closed 1 year ago

pablogsal commented 1 year ago

The 'flaky' plugging does some cuestionable activity and forces our plugin to be called with itself. This causes us to wrap our own test wrapper and therefore create nested Trackers, which is not allowed.

To fix this, unwrap the test function at the end of the run.

Issue number of the reported bug or feature request: #

Describe your changes A clear and concise description of the changes you have made.

Testing performed Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.

Additional context Add any other context about your contribution here.