pytest 4.3.1:
Bug Fixes
- Logging messages inside pytest_runtest_logreport() are now properly captured and displayed.
- Improve validation of contents written to captured output so it behaves the same as when capture is disabled.
- Fix AttributeError: FixtureRequest has no 'confg' attribute bug in testdir.copy_example.
Trivial/Internal Changes
- Avoid pkg_resources import at the top-level.
1.0.4:
* Fix erratic test.
1.0.3:
* Fix AttributeError in user_Agent provider.
* Update zh_TW person provider.
* Add street data & remove street_prefixes from id_ID address provider.
* Fix parsing of timedeltas in date_time provider.
* Split name formats into formats_male and formats_female for de_DE provider.
* Pin more-itertools to a version compatible with Python 2.7.
* Fix fr_FR postcodes_format.
* Fix hex code for yellowgreen color.
* Add Brazilian RG (identity card).
* Allow overriding of random generator class.
4.11.1:
This is a formatting-only patch, enabled by a new version of :pypi:isort.
4.11.0:
This release deprecates :func:~hypothesis.strategies.sampled_from with empty sequences. This returns :func:~hypothesis.strategies.nothing, which gives a clear error if used directly... but simply vanishes if combined with another strategy.
Tests that silently generate less than expected are a serious problem for anyone relying on them to find bugs, and we think reliability more important than convenience in this case.
4.10.0:
This release improves Hypothesis's to detect flaky tests, by noticing when the behaviour of the test changes between runs. In particular this will notice many new cases where data generation depends on external state (e.g. external sources of randomness) and flag those as flaky sooner and more reliably.
The basis of this feature is a considerable reengineering of how Hypothesis stores its history of test cases, so on top of this its memory usage should be considerably reduced.
4.9.0:
This release adds the strategy :func:~hypothesis.extra.numpy.valid_tuple_axes, which generates tuples of axis-indices that can be passed to the axis argument in NumPy's sequential functions (e.g. :func:numpy:numpy.sum).
4.8.0:
This release significantly tightens validation in :class:hypothesis.settings. :obj:~hypothesis.settings.max_examples, :obj:~hypothesis.settings.buffer_size, and :obj:~hypothesis.settings.stateful_step_count must be positive integers; :obj:~hypothesis.settings.deadline must be a positive number or None; and :obj:~hypothesis.settings.derandomize must be either True or False.
As usual, this replaces existing errors with a more helpful error and starts new validation checks as deprecation warnings.
4.7.19:
This release makes some micro-optimisations to certain calculations performed in the shrinker. These should particularly speed up large test cases where the shrinker makes many small changes. It will also reduce the amount allocated, but most of this is garbage that would have been immediately thrown away, so you probably won't see much effect specifically from that.
4.7.18:
This patch removes some overhead from :func:~hypothesis.extra.numpy.arrays with a constant shape and dtype. The resulting performance improvement is modest, but worthwile for small arrays.
On recent Linux distributions, e.g. Fedora, it was failing to build
because of function visibility changes. Tested with Fedora 29, also
with NetBSD 8.0 and Debian Jessie, no regressions with the latter two.