Skip to content

Update dependency pytest-randomly to v4#306

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pytest-randomly-4.x
Open

Update dependency pytest-randomly to v4#306
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pytest-randomly-4.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 10, 2025

This PR contains the following updates:

Package Change Age Confidence
pytest-randomly (changelog) ==1.2.3==4.0.1 age confidence

Release Notes

pytest-dev/pytest-randomly (pytest-randomly)

v4.0.1

Compare Source

  • Remove the random state caching, which would grow without bound, leaking memory in long test runs.
    The caching was added to slightly speed up re-using the same (final) seed, but since the final seed is now different for each test, it has no effect.

    PR #&#8203;690 <https://github.com/pytest-dev/pytest-randomly/issues/687>__.

  • Modify Numpy seed restriction, replacing hashing with a modulo operation.
    The extra work to hash is unnecessary now that we generate a final seed per test with CRC32.
    This change saves ~500ns per test when Numpy is installed.

    PR #&#8203;691 <https://github.com/pytest-dev/pytest-randomly/issues/691>__.

v4.0.0

Compare Source

  • Support Python 3.14.

  • Use a different random seed per test, based on the test ID.

    This change should mean that tests exercise more random data values in a given run, and that any randomly-generated identifiers have a lower chance of collision when stored in a shared resource like a database.

    PR #&#8203;687 <https://github.com/pytest-dev/pytest-randomly/issues/687>.
    Thanks to Bryce Drennan for the suggestion in Issue #&#8203;600 <https://github.com/pytest-dev/pytest-randomly/issues/600>
    and initial implementation in PR #&#8203;617 <https://github.com/pytest-dev/pytest-randomly/pull/617>__.

  • Move from MD5 to CRC32 for hashing test IDs, as it’s 5x faster and we don’t need cryptographic security.

    Issue #&#8203;686 <https://github.com/pytest-dev/pytest-randomly/issues/686>__.

v3.16.0

Compare Source

  • Drop Python 3.8 support.

  • Support Python 3.13.

v3.15.0

Compare Source

  • Support Python 3.12.

v3.14.0

Compare Source

  • Reset the random state for Model Bakery <https://model-bakery.readthedocs.io/en/latest/>__.

v3.13.0

Compare Source

  • Drop Python 3.7 support.

v3.12.0

Compare Source

  • Support Python 3.11.

v3.11.0

Compare Source

  • Drop Python 3.6 support.

v3.10.3

Compare Source

  • Work on FIPS Python 3.9+, by declaring use of hashlib.md5() as not used for security.

    Thanks to dantebben for the report in Issue #&#8203;414 <https://github.com/pytest-dev/pytest-randomly/issues/414>__.

v3.10.2

Compare Source

  • Fix crash when pytest’s cacheprovider is disabled.

    Thanks to Mandeep Sandhu for the report in Issue #&#8203;408 <https://github.com/pytest-dev/pytest-randomly/issues/408>__.

  • Improve group name in pytest --help.

v3.10.1

Compare Source

  • Fix new shuffling to work when one or more test in a class or module have the
    same test id.

    Thanks to Nikita Sobolev for the report in Issue #&#8203;378 <https://github.com/pytest-dev/pytest-randomly/issues/378>__.

v3.10.0

Compare Source

  • Rework shuffling algorithm to use hashing. This means that running a subset
    of tests with the same seed will now produce the same ordering as running the
    full set of tests. This allows narrowing down ordering-related failures.

    Thanks to Tom Grainger for the suggestion in Issue #&#8203;210 <https://github.com/pytest-dev/pytest-randomly/issues/210>__.

  • Shuffle before other test collection hooks. This allows
    pytest’s --stepwise flag <https://docs.pytest.org/en/latest/cache.html#stepwise>__ to work, among
    other things.

    Thanks to Tom Grainger for the suggestion to try with --stepwise. Fixes
    Issue #&#8203;376 <https://github.com/pytest-dev/pytest-randomly/issues/376>__.

v3.9.0

Compare Source

  • Add type hints.

v3.8.0

Compare Source

  • Support Python 3.10.

v3.7.0

Compare Source

  • Drop dependency on backports.entry-points-selectable by depending on
    importlib-metadata version 3.6.0+.

v3.6.0

Compare Source

  • Fix deprecation warning from importlib-metadata 3.9.0+.

    Thanks to Dominic Davis-Foster for report in Issue #&#8203;333 <https://github.com/pytest-dev/pytest-randomly/issues/333>__.

  • Stop distributing tests to reduce package size. Tests are not intended to be
    run outside of the tox setup in the repository. Repackagers can use GitHub's
    tarballs per tag.

  • Drop Python 3.5 support.

v3.5.0

Compare Source

  • Support Python 3.9.
  • Move license from BSD to MIT License.

v3.4.1

Compare Source

  • Fix numpy error ValueError: Seed must be between 0 and 2**32 - 1 when
    passed a seed outside of this range.

v3.4.0

Compare Source

  • Provide a faker_seed fixture to set the seed for tests using faker's
    pytest fixtures (as per its
    docs <https://faker.readthedocs.io/en/master/pytest-fixtures.html#seeding-configuration>__).

    Thanks to Romain Létendart for the change in PR #&#8203;261 <https://github.com/pytest-dev/pytest-randomly/pull/261>__.

v3.3.1

Compare Source

  • Fix to work when pytest-xdist is not installed or active
    (PluginValidationError: unknown hook 'pytest_configure_node').

v3.3.0

Compare Source

  • Add pytest-xdist <https://pypi.org/project/pytest-xdist/>__ support.
    Previously it only worked reliably when setting --randomly-seed
    explicitly. When not provided, the default seed generated in workers could
    differ and collection would fail. Now when it is not provided, all xdist
    worker processes shared the same default seed generated in the main
    process.

v3.2.1

Compare Source

  • Update MANIFEST.in so tests are included in the sdist tarball again.

v3.2.0

Compare Source

  • Converted setuptools metadata to configuration file. This meant removing the
    __version__ attribute from the package. If you want to inspect the
    installed version, use
    importlib.metadata.version("pytest-randomly")
    (docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>__ /
    backport <https://pypi.org/project/importlib-metadata/>__).
  • Convert reading entrypoints to use importlib.metadata. Depend on
    importlib-metadata on Python < 3.8.
  • Update Python support to 3.5-3.8.

v3.1.0

Compare Source

  • Add plugins via entry points pytest_randomly.random_seeder to allow
    outside packages to register additional random generators to seed. This has
    added a dependency on the entrypoints package.

v3.0.0

Compare Source

  • Update Python support to 3.5-3.7, as 3.4 has reached its end of life.
  • Handle CollectError\s and ImportError\s during collection when
    accessing item.module.

v2.1.1

Compare Source

  • Fix including tests in sdist after re-arrangement in 2.1.0.

v2.1.0

Compare Source

  • Add the option --randomly-seed=last to reuse the last used value for the
    seed.

v2.0.0

Compare Source

  • Drop Python 2 support, only Python 3.4+ is supported now.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/pytest-randomly-4.x branch from 9ef07c4 to b1da481 Compare September 13, 2025 05:12
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.

0 participants