We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcd3ad5 commit e52d8c9Copy full SHA for e52d8c9
1 file changed
tests/memory_tests/test_multiple_runs.py
@@ -106,7 +106,7 @@ def test_memory_leak_between_runs(cleanup):
106
memory_measurements: List[Tuple[int, float]] = []
107
run_snapshots = []
108
109
- run_count = 10
+ run_count = 2
110
111
for i in range(run_count):
112
print(f"\n{'=' * 60}")
@@ -206,9 +206,9 @@ def test_memory_leak_between_runs(cleanup):
206
)
207
208
# 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"
+ assert final_memory < FINAL_MEMORY_THRESHOLD, (
+ f"Final memory usage too high: {final_memory:.3f} MiB > {FINAL_MEMORY_THRESHOLD} MiB"
+ )
212
213
finally:
214
tracemalloc.stop()
0 commit comments