Skip to content

Commit e52d8c9

Browse files
test only 2 successive fast calls
1 parent fcd3ad5 commit e52d8c9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/memory_tests/test_multiple_runs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_memory_leak_between_runs(cleanup):
106106
memory_measurements: List[Tuple[int, float]] = []
107107
run_snapshots = []
108108

109-
run_count = 10
109+
run_count = 2
110110

111111
for i in range(run_count):
112112
print(f"\n{'=' * 60}")
@@ -206,9 +206,9 @@ def test_memory_leak_between_runs(cleanup):
206206
)
207207

208208
# Assert that final memory is reasonable
209-
assert (
210-
final_memory < FINAL_MEMORY_THRESHOLD
211-
), f"Final memory usage too high: {final_memory:.3f} MiB > {FINAL_MEMORY_THRESHOLD} MiB"
209+
assert final_memory < FINAL_MEMORY_THRESHOLD, (
210+
f"Final memory usage too high: {final_memory:.3f} MiB > {FINAL_MEMORY_THRESHOLD} MiB"
211+
)
212212

213213
finally:
214214
tracemalloc.stop()

0 commit comments

Comments
 (0)