Skip to content

Commit 652c764

Browse files
authored
gh-140381: Increase slow_fibonacci call frequency in test_profiling (#140673)
1 parent 17636ba commit 652c764

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/test/test_profiling/test_sampling_profiler/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ def main_loop():
414414
if iteration % 3 == 0:
415415
# Very CPU intensive
416416
result = cpu_intensive_work()
417-
elif iteration % 5 == 0:
418-
# Expensive recursive operation
417+
elif iteration % 2 == 0:
418+
# Expensive recursive operation (increased frequency for slower machines)
419419
result = slow_fibonacci(12)
420420
else:
421421
# Medium operation
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix flaky test_profiling tests on i686 and s390x architectures by increasing slow_fibonacci call frequency from every 5th iteration to every 2nd iteration.

0 commit comments

Comments
 (0)