From 67d731edfa8ddd68b95badab941221256813e4e6 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Mon, 25 Sep 2023 16:11:07 -0400 Subject: [PATCH] tests: Fix another flaky test The allocation sizes performed by this test are too low, and so allocations performed by the interpreter itself could wind up being larger and skewing the test output. Allocate more memory to drown out the noise. Signed-off-by: Matt Wozniski --- tests/test_pytest_memray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pytest_memray.py b/tests/test_pytest_memray.py index b023956..926b3d9 100644 --- a/tests/test_pytest_memray.py +++ b/tests/test_pytest_memray.py @@ -369,11 +369,11 @@ def test_memray_report_limit(pytester: Pytester) -> None: allocator = MemoryAllocator() def allocating_func1(): - allocator.valloc(1024) + allocator.valloc(1024*1024) allocator.free() def allocating_func2(): - allocator.valloc(1024*2) + allocator.valloc(1024*1024*2) allocator.free() def test_foo():