Skip to content

Commit

Permalink
tests: Fix another flaky test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
godlygeek committed Sep 27, 2023
1 parent 1bc9df7 commit 67d731e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pytest_memray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 67d731e

Please sign in to comment.