Skip to content

Releases: HypothesisWorks/hypothesis

Hypothesis for Python - version 6.150.3

23 Jan 07:53

Choose a tag to compare

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

13 Jan 17:09

Choose a tag to compare

Hypothesis for Python - version 6.150.1

12 Jan 08:46

Choose a tag to compare

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

06 Jan 17:08

Choose a tag to compare

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

05 Jan 22:31

Choose a tag to compare

Hypothesis for Python - version 6.149.0

05 Jan 08:21

Choose a tag to compare

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

05 Jan 05:20

Choose a tag to compare

Hypothesis for Python - version 6.148.12

04 Jan 22:12

Choose a tag to compare

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

03 Jan 21:11

Choose a tag to compare

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

03 Jan 19:28

Choose a tag to compare

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.