Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Jul 26, 2025

Use the more modern @pytest.mark.flaky decorator to mark tests as flaky, rather than @flaky.flaky. This avoids type checking issues, and improves compatibility with other implementations of the marker, such as pytest-rerunfailures.

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

I think this doesn't justify a news item, since it won't affect end users — but I can write one if you wish.

Use the more modern `@pytest.mark.flaky` decorator to mark tests
as flaky, rather than `@flaky.flaky`.  This avoids type checking issues,
and improves compatibility with other implementations of the marker,
such as `pytest-rerunfailures`.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
@gaborbernat gaborbernat merged commit 216dc9f into pypa:main Jul 26, 2025
42 checks passed
@mgorny mgorny deleted the flaky-mark branch July 26, 2025 14:34
@mgorny
Copy link
Contributor Author

mgorny commented Jul 26, 2025

Thanks a lot!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants