Open
Conversation
9ef07c4 to
b1da481
Compare
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:
==1.2.3→==4.0.1Release Notes
pytest-dev/pytest-randomly (pytest-randomly)
v4.0.1Compare 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 #​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 #​691 <https://github.com/pytest-dev/pytest-randomly/issues/691>__.v4.0.0Compare 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 #​687 <https://github.com/pytest-dev/pytest-randomly/issues/687>.Thanks to Bryce Drennan for the suggestion in
Issue #​600 <https://github.com/pytest-dev/pytest-randomly/issues/600>and initial implementation inPR #​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 #​686 <https://github.com/pytest-dev/pytest-randomly/issues/686>__.v3.16.0Compare Source
Drop Python 3.8 support.
Support Python 3.13.
v3.15.0Compare Source
v3.14.0Compare Source
Model Bakery <https://model-bakery.readthedocs.io/en/latest/>__.v3.13.0Compare Source
v3.12.0Compare Source
v3.11.0Compare Source
v3.10.3Compare 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 #​414 <https://github.com/pytest-dev/pytest-randomly/issues/414>__.v3.10.2Compare Source
Fix crash when pytest’s cacheprovider is disabled.
Thanks to Mandeep Sandhu for the report in
Issue #​408 <https://github.com/pytest-dev/pytest-randomly/issues/408>__.Improve group name in
pytest --help.v3.10.1Compare 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 #​378 <https://github.com/pytest-dev/pytest-randomly/issues/378>__.v3.10.0Compare 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 #​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, amongother things.
Thanks to Tom Grainger for the suggestion to try with
--stepwise. FixesIssue #​376 <https://github.com/pytest-dev/pytest-randomly/issues/376>__.v3.9.0Compare Source
v3.8.0Compare Source
v3.7.0Compare Source
backports.entry-points-selectableby depending onimportlib-metadataversion 3.6.0+.v3.6.0Compare Source
Fix deprecation warning from importlib-metadata 3.9.0+.
Thanks to Dominic Davis-Foster for report in
Issue #​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.0Compare Source
v3.4.1Compare Source
ValueError: Seed must be between 0 and 2**32 - 1whenpassed a seed outside of this range.
v3.4.0Compare Source
Provide a
faker_seedfixture to set the seed for tests using faker'spytest 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 #​261 <https://github.com/pytest-dev/pytest-randomly/pull/261>__.v3.3.1Compare Source
(
PluginValidationError: unknown hook 'pytest_configure_node').v3.3.0Compare Source
pytest-xdist <https://pypi.org/project/pytest-xdist/>__ support.Previously it only worked reliably when setting
--randomly-seedexplicitly. 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.1Compare Source
MANIFEST.inso tests are included in the sdist tarball again.v3.2.0Compare Source
__version__attribute from the package. If you want to inspect theinstalled 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/>__).importlib.metadata. Depend onimportlib-metadataon Python < 3.8.v3.1.0Compare Source
pytest_randomly.random_seederto allowoutside packages to register additional random generators to seed. This has
added a dependency on the
entrypointspackage.v3.0.0Compare Source
CollectError\s andImportError\s during collection whenaccessing
item.module.v2.1.1Compare Source
v2.1.0Compare Source
--randomly-seed=lastto reuse the last used value for theseed.
v2.0.0Compare Source
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.
This PR was generated by Mend Renovate. View the repository job log.