bloomberg / pytest-memray

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

Improve tests #112

Closed godlygeek closed 8 months ago

godlygeek commented 8 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.