File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments