When using pytest-xdist there are some extra allocations that the
plugin does that make it quite difficult to test values for the limit
decorator that are close to the numeric limit. In particular this is a
sample list of allocations in Python 3.11 when the plugin is active:
The only one the test cares about is the one made using valloc, but
unlike in the memray test suite we cannot filter them in the tests, so
we need to make the allocation sizes bigger and remove the tests that
are checking exactly in the limit.
When using
pytest-xdist
there are some extra allocations that the plugin does that make it quite difficult to test values for thelimit
decorator that are close to the numeric limit. In particular this is a sample list of allocations in Python 3.11 when the plugin is active:The only one the test cares about is the one made using
valloc
, but unlike in thememray
test suite we cannot filter them in the tests, so we need to make the allocation sizes bigger and remove the tests that are checking exactly in the limit.