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