Skip to content

Commit c89ec3a

Browse files
committed
Up to 90% :(
1 parent 75905fa commit c89ec3a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_method.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,9 @@ def test_getting_generic_method_binding_does_not_leak_memory(memory_usage_tracki
983983
bytesAllocatedPerIteration = pow(2, 20) # 1MB
984984
bytesLeakedPerIteration = processBytesDelta / iterations
985985

986-
# Allow 75% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
986+
# Allow 90% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
987987
# Increased from 50% to ensure that it works on Windows with Python >3.13
988-
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.75
988+
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.9
989989

990990
assert bytesLeakedPerIteration < failThresholdBytesLeakedPerIteration
991991

@@ -1068,8 +1068,8 @@ def test_getting_method_overloads_binding_does_not_leak_memory(memory_usage_trac
10681068
bytesAllocatedPerIteration = pow(2, 20) # 1MB
10691069
bytesLeakedPerIteration = processBytesDelta / iterations
10701070

1071-
# Allow 75% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
1072-
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.75
1071+
# Allow 90% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
1072+
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.9
10731073

10741074
assert bytesLeakedPerIteration < failThresholdBytesLeakedPerIteration
10751075

0 commit comments

Comments
 (0)