Skip to content

Commit 898adc7

Browse files
authored
Decrease safe_margin extra space to 20%
1 parent 7b03a5a commit 898adc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,8 @@ def get_sp():
10491049
this_sp = _testinternalcapi.get_stack_pointer()
10501050
lower_sp = _testcapi.pyobject_vectorcall(get_sp, (), ())
10511051
self.assertLess(lower_sp, this_sp)
1052-
# Add an (arbitrary) extra 25% for safety
1053-
safe_margin = (this_sp - lower_sp) * 5 / 4
1052+
# Add an (arbitrary) extra 20% for safety
1053+
safe_margin = (this_sp - lower_sp) * 6 / 5
10541054
self.assertLess(safe_margin, _testinternalcapi.get_stack_margin())
10551055

10561056
@skip_on_s390x

0 commit comments

Comments
 (0)