bloomberg / pytest-memray

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

Improve tests #112

Closed godlygeek closed 7 months ago

godlygeek commented 7 months ago

Fix a few different issues that I noticed while working on #103:

  1. The PYTEST_ADDOPTS environment variable wasn't being passed through to pytest by tox, apparently due to our config file not using a wildcard where we meant to.
  2. Tox wasn't exercising Python 3.11 or 3.12 by default (even though our CI exercised them)
  3. One of our tests would fail if run in isolation due to libpthread "leaking" memory by saving a thread and its stack for later reuse.