Skip to content

Commit b71135e

Browse files
committed
Increase threshold on memleak test
1 parent f633711 commit b71135e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_method.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,8 +967,9 @@ def test_getting_generic_method_binding_does_not_leak_memory():
967967
bytesAllocatedPerIteration = pow(2, 20) # 1MB
968968
bytesLeakedPerIteration = processBytesDelta / iterations
969969

970-
# Allow 50% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
971-
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration / 2
970+
# Allow 75% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration
971+
# Increased from 50% to ensure that it works on Windows with Python >3.13
972+
failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.75
972973

973974
assert bytesLeakedPerIteration < failThresholdBytesLeakedPerIteration
974975

0 commit comments

Comments
 (0)