chore(deps): update dependency pytest-randomly to v5 - #133
Merged
Conversation
DavidSAmundsen
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==4.1.0→==5.0.0Release Notes
pytest-dev/pytest-randomly (pytest-randomly)
v5.0.0Compare Source
Support Python 3.15.
Shuffle tests before other plugins’
pytest_collection_modifyitemshooks run.Previously, pytest-randomly used a plain
tryfirsthook, so another plugin usingtryfirst, such as pytest-django, could reorder tests before or after pytest-randomly’s shuffle, depending on the plugin registration order.Since that order can vary between environments, this would make the final test order non-repeatable.
Now, pytest-randomly marks its hook as a hook wrapper, making it run before any other plugin’s
pytest_collection_modifyitemshooks, regardless of registration order.Plugins that group tests with a stable sort can apply their grouping on top of the shuffled order, making the final test order reproducible from the seed.
This is a low-impact breaking change because it you may not be able to reprduce a test order from the last pytest-randomly version by reusing a
--randomly-seedvalue.PR #​746 <https://github.com/pytest-dev/pytest-randomly/pull/746>.Thanks to milssky for the report in
Issue #​701 <https://github.com/pytest-dev/pytest-randomly/issues/701>.Require pytest 8+, the first version to require a version of pluggy that supports hook wrappers, as used by the above fix.
PR #​746 <https://github.com/pytest-dev/pytest-randomly/pull/746>__.Reset
Polyfactory <https://polyfactory.litestar.dev/>__\’s default random state at the start of every test, if it is installed.Thanks to Rahul Kumar in
PR #​735 <https://github.com/pytest-dev/pytest-randomly/issues/735>__.Switch package build backend from setuptools to
uv_build <https://docs.astral.sh/uv/concepts/build-backend/>__.This makes builds with uv about nine times faster, since uv runs the backend natively, without creating a build environment or spawning a Python process.
Additionally, source distributions no longer include test files, which setuptools previously included incompletely, missing the files needed to actually run them.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.