Releases: HypothesisWorks/hypothesis
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.
Hypothesis for Python - version 6.149.1
Add type hints to an internal class.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.149.0
This release extends the explain-phase "# or any other generated
value" comments to sub-arguments within "builds()", "tuples()", and
"fixed_dictionaries()".
Previously, these comments only appeared on top-level test arguments.
Now, when the explain phase determines that a sub-argument can vary
freely without affecting the test failure, you'll see comments like:
Falsifying example: test_foo(
obj=MyClass(
x=0, # or any other generated value
y=True,
),
data=(
'', # or any other generated value
42,
),
)
This makes it easier to understand which parts of complex inputs
actually matter for reproducing a failure.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.13
Clean up an internal helper.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.12
This patch fixes "from_type()" to properly handle parameterized type
aliases created with Python 3.12+'s PEP 695 "type" statement. For
example, "st.from_type(A[int])" where "type A[T] = list[T]" now
correctly resolves to "lists(integers())" instead of raising a
"TypeError" (issue #4628).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.11
Hypothesis now prints a "Verbosity.verbose" log when we switch away
from an alternative backend.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.10
Fixes Ghostwriter output for numpy >= 2.4.0. Also adds support
"from_type()" for numpy 2.5.0 nightly (which has not yet been
released).
The canonical version of these notes (with links) is on readthedocs.