NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2455 most downloaded on PyPI
A simple plugin to use with pytest
Last release 17 days ago
17 Sep 2026
Release timing varies
gaps range from 2 weeks to 13 months
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
15 releases · first in 2022
One column per quarter.
Handle disabled cacheprovider plugin by @mylee04 in #193
Full Changelog: v1.10.0...v1.11.0
Allow tests using the limit_memory marker to run when pytest's cacheprovider plugin is disabled. (130)
Write metadata files to the configured --memray-bin-directory as JSON rather than pickle files. (195)
Rename metadata files written to the --memray-bin-directory into place atomically. (196)
Secure GitHub Actions workflows by @oiahoon in #179
Full Changelog: v1.9.0...v1.10.0
Drop support for pytest 7.x, which was superseded in January 2024.
pytest.mark.limit_leaked_objects). Expected leaks can be filtered out and ignored. (#153)limit_memory marker shows on failure via pytest's -v / -q flags or the verbosity_memray ini option. At the default level or -v the top 10 allocations by size are shown; -vv lists every allocation; -q hides the allocation list entirely, leaving only the one-line failure summary. (#142)Full Changelog: v1.8.0...v1.9.0
Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0 by @dependabot [bot] in #124
Full Changelog: 1.7.0...v1.8.0
Cooperate with anyio by @godlygeek in #122
Full Changelog: 1.6.0...1.7.0
Fix compatibility with anyio-based async test runners by using an async def wrapper when the decorated test is a coroutine function. (119)
Fix --most-allocations with the value of 0 by @pablogsal in #94
# type: ignore comments for @hookimpl by @godlygeek in #95Full Changelog: 1.5.0...1.6.0
Add a new --fail-on-increase option that fails a test with the limit_memory marker if it uses more memory than its last successful run. (91)
Use aggregated capture files, reducing the amount of temporary disk space required in order to run tests. (107)
Add a new current_thread_only keyword argument to the limit_memory and limit_leaks markers to ignore all allocations made in threads other than the one running the test. (117)
Clarify that reported allocations are at the high watermark by @tdtshafer in #81
stacks and native by @tdtshafer in #82Full Changelog: 1.4.1...1.5.0
Add a new limit_leaks marker to check for memory leaks in tests. (45)
Support passing --trace-python-allocators to memray to track all Python allocations. (78 and 64)
Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.1 by @dependabot in #63
Full Changelog: 1.4.0...1.4.1
Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.5.2 by @dependabot in #59
--memray is not passed by @pablogsal in #57Full Changelog: 1.3.2...1.4.0
Allow to run tests marked with memray markers without having to provide "--memray" in the command line. (57)
Add two new options that allow to customize the ammount of frames in allocation tracebacks as well as including hybrid stack traces. (58)
Make the plugin compatible with pytest-xdist by @pablogsal in #51
Full Changelog: 1.3.1...1.3.2
Declare Python 3.11 support by @godlygeek in #43
Full Changelog: 1.3.0...1.3.1
Declare 3.11 support
Fix incompatibility with the flaky plugin
Fix sphinx extlinks config by @gaborbernat in https://github.com/bloomberg/pytest-memray/pull/36
Full Changelog: https://github.com/bloomberg/pytest-memray/compare/1.2.0...1.3.0
Ensure Python 3.11 support - by gaborbernat. (18)
Remove unit test layer and pensieve -> memray by @gaborbernat in https://github.com/bloomberg/pytest-memray/pull/24
Full Changelog: https://github.com/bloomberg/pytest-memray/compare/1.1.0...1.2.0
Allow specifying the prefix used for -memray-bin-path dumps via the -memray-bin-prefix (and if specified and file already exists will be recreated) - by gaborbernat. (28)
Ensure the "longrepr" attribute is set on failing tests by @pablogsal in https://github.com/bloomberg/pytest-memray/pull/4
Full Changelog: https://github.com/bloomberg/pytest-memray/commits/1.1.0
Report memory limit and allocated memory in longrepr - by petr-tik. (5)
Allow passing --memray-bin-path argument to the CLI to allow persisting the binary dumps - by gaborbernat. (10)
Release a pure python wheel - by gaborbernat. (11)
Switch build backend from setuptools to hatchling - by gaborbernat. (12)
Add license, code of conduct and security information to the README by @pablogsal in https://github.com/bloomberg/pytest-memray/pull/1
Fiat Lux!
Full Changelog: https://github.com/bloomberg/pytest-memray/commits/v1.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →