Releases: HypothesisWorks/hypothesis
Hypothesis for Python - version 6.151.5
This patch teaches our pytest plugin to :ref: find interesting constants <v6.131.1> when pytest is collecting tests, to avoid
arbitrarily attributing the latency to whichever test function
happened to be executed first (issue #4627).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.151.4
This patch adjusts how we compute the stopping threshold introduced in
version 6.151.3, while still maintaining 99% confidence that <1% of
test cases pass.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.151.3
This patch makes Hypothesis more tolerant of slow-to-satisfy
"assume()" calls. Previously, Hypothesis would give up after
"max_examples * 10" attempts; now it uses a statistical test to stop
only when 99% confident that <1% of examples would pass (issue #4623).
Thanks to @ajdavis for this improvement!
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.151.2
Format our code with the latest version of black.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.151.1
Improve internal categorization of test cases when an alternative
backend raises "BackendCannotProceed".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.151.0
Add 2025.12 to the list of recognized Array API versions in
"hypothesis.extra.array_api".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.150.3
Hypothesis now generates powers of 2 more often when using
"integers()".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.150.2
Update some internal type hints.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.150.1
This patch fixes a bug where "recursive()" would fail in cases where
the "extend=" function does not reference it's argument - which was
assumed by the recent "min_leaves=" feature, because the strategy
can't actually recurse otherwise. (issue #4638)
Now, the historical behavior is working-but-deprecated, or an error if
you explicitly pass "min_leaves=".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.150.0
This release adds a "min_leaves" argument to "recursive()", which
ensures that generated recursive structures have at least the
specified number of leaf nodes (issue #4205).
The canonical version of these notes (with links) is on readthedocs.