Skip to content

Commit 10f73e6

Browse files
committed
Adjust remaining memory leak test to 90% limit
1 parent a67d1a0 commit 10f73e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_method.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,8 @@ def test_getting_overloaded_method_binding_does_not_leak_memory(memory_usage_tra
10251025
bytesAllocatedPerIteration = pow(2, 20) # 1MB
10261026
bytesLeakedPerIteration = processBytesDelta / iterations
10271027

1028-
# Allow 50% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
1029-
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration / 2
1028+
# Allow 90% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
1029+
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.9
10301030

10311031
assert bytesLeakedPerIteration < failThresholdBytesLeakedPerIteration
10321032

0 commit comments

Comments
 (0)