From 90df9ffb8d885932a13c94a5de0aa73aabb0551f Mon Sep 17 00:00:00 2001 From: Travis Shafer Date: Thu, 22 Jun 2023 14:54:10 -0400 Subject: [PATCH 1/2] Update plugin.py --- src/pytest_memray/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_memray/plugin.py b/src/pytest_memray/plugin.py index e014abf..793c2c1 100644 --- a/src/pytest_memray/plugin.py +++ b/src/pytest_memray/plugin.py @@ -282,7 +282,7 @@ def _report_records_for_test( terminalreporter: TerminalReporter, ) -> None: writeln = terminalreporter.write_line - writeln(f"Allocations results for {test_id}") + writeln(f"Allocation results for {test_id} at the high watermark") writeln("") writeln(f"\t 📦 Total memory allocated: {sizeof_fmt(metadata.peak_memory)}") writeln(f"\t 📏 Total allocations: {metadata.total_allocations}") From 4508001b8b472e039db4f547b7997401b1f346c8 Mon Sep 17 00:00:00 2001 From: Travis Shafer Date: Thu, 22 Jun 2023 14:54:42 -0400 Subject: [PATCH 2/2] Update usage.rst --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index a0ef475..a409335 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -22,7 +22,7 @@ pytest: Allocation tracking ~~~~~~~~~~~~~~~~~~~ -By default, the plugin will track allocations in all tests. This information is +By default, the plugin will track allocations at the high watermark in all tests. This information is reported after tests run ends: .. command-output:: env COLUMNS=92 pytest --memray demo