51bce7483e
- update to 4.0.1: * 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. * 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. * 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. Thanks to Bryce Drennan for the suggestion in Issue #600 and initial implementation in PR #617. * Move from MD5 to CRC32 for hashing test IDs, as it’s 5x faster and we don’t need cryptographic security. Issue #686.
Dirk Mueller2025-09-29 20:52:57 +00:00
5dabab7396
Accepting request 1271889 from devel:languages:python:pytest
Ana Guerrero2025-04-22 15:31:15 +00:00
de49926916
Accepting request 1218839 from devel:languages:python:pytest
Ana Guerrero2024-10-29 13:35:05 +00:00
0835d7ef03
- Make model-bakery BuildRequires optional, in SLFO:Main we don't have python311-django.
Dirk Mueller2024-10-28 16:48:55 +00:00
fbdd34d0f5
- Make model-bakery BuildRequires optional, in SLFO:Main we don't have python311-django.
Dirk Mueller2024-10-28 16:48:55 +00:00
c39652200e
- update to 3.16.0: * Drop Python 3.8 support. * Support Python 3.13.
Dirk Mueller2024-10-28 16:47:30 +00:00
eda0c5f3f6
- update to 3.16.0: * Drop Python 3.8 support. * Support Python 3.13.
Dirk Mueller2024-10-28 16:47:30 +00:00
4e068fb456
Accepting request 1218761 from devel:languages:python:pytest
Ana Guerrero2024-10-28 14:22:42 +00:00
e952d1ebfe
Accepting request 1218761 from devel:languages:python:pytest
Ana Guerrero2024-10-28 14:22:42 +00:00
f51c19e996
- Make model-bakery BuildRequires optional, in SLFO:Main we don't have python311-django.
Daniel Garcia2024-10-28 09:42:39 +00:00
e85bd24e6d
- Make model-bakery BuildRequires optional, in SLFO:Main we don't have python311-django.
Daniel Garcia2024-10-28 09:42:39 +00:00
6e9b9fe1bc
Accepting request 1126456 from devel:languages:python:pytest
Ana Guerrero2023-11-15 20:08:41 +00:00
bedae54091
- update to 3.15.0: * Support Python 3.12. * Reset the random state for Model Bakery - Drop pytest6.patch merged upstream
Dirk Mueller2023-11-07 20:05:14 +00:00
c6fc37b7e9
- update to 3.12.0: * Support Python 3.11. * Drop Python 3.6 support. * Work on FIPS Python 3.9+, by declaring use of `hashlib.md5() as not used for security. * Fix crash when pytest’s cacheprovider is disabled. * Improve group name in pytest --help`. * Fix new shuffling to work when one or more test in a class or module have the same test id. * 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. * Add type hints. * Support Python 3.10. - add fix-tests-pytest-73.patch to support pytest 7.3.x
Dirk Mueller2023-05-05 00:07:02 +00:00
dd97f570aa
- Update to 3.4.0: * Provide a faker_seed fixture to set the seed for tests using faker's pytest fixtures (as per its docs).
Tomáš Chvátal
2020-06-09 07:57:48 +00:00
c548b8464f
- Update to 3.3.1: * Fix to work when pytest-xdist is not installed or active. * Add pytest-xdist support.
Tomáš Chvátal
2020-04-27 09:48:29 +00:00
d415652bab
- Update to 3.2.0: * Converted setuptools metadata to configuration file * Convert reading entrypoints to use importlib.metadata. Depend on importlib-metadata on Python < 3.8. * Update Python support to 3.5-3.8.
Tomáš Chvátal
2020-01-06 13:09:04 +00:00
df55719333
- Update to 3.1.0: * 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. - Drop patch tests-restore-python2.7.patch
Tomáš Chvátal
2019-09-09 14:08:46 +00:00
0d86b652de
- Update to 3.0.0: * Handle CollectErrors and ImportErrors during collection when accessing item.module.
Tomáš Chvátal
2019-06-03 09:14:59 +00:00