Skip to content

Conversation

@ThierryMT
Copy link

@ThierryMT ThierryMT commented Oct 27, 2025

Fixes #140381

Problem

Tests asserting "slow_fibonacci" in test_profiling were flaky on slower architectures (i686/s390x) because the function wasn't called frequently enough for the profiler to reliably capture it.

Solution

Changed slow_fibonacci to run every 2nd iteration instead of every 5th iteration, increasing its call frequency from 20% to 50% of iterations.

Testing

This should resolve the flaky test failures on i686/s390x builds.

@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Oct 27, 2025
@bedevere-app
Copy link

bedevere-app bot commented Oct 27, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests asserting "slow_fibonacci" in test_profiling flaky fail on i686/s390x builds in Fedora Linux

1 participant