Releases: HypothesisWorks/hypothesis
Hypothesis for Python - version 6.122.4
This patch improves generation performance for the provisional
"domains()" strategy, including its derivative strategies "urls()" and
"emails()".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.122.3
This patch improves our error and warning messages.
-
Add a warning for "st.text("ascii")" - you probably meant
"st.text(st.characters(codec="ascii"))". Similarly for ""utf-8"". -
Recommend remedies in the error message of "Unsatisfiable".
-
When "@given" errors because it was given an extra keyword argument,
and the keyword matches a setting name like "max_examples",
recommend "@settings(max_examples=...)" instead.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.122.2
This patch updates some outdated external links in our documentation.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.122.1
Fix "from_type()" on "collections.abc.Callable" returning "None".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.122.0
This release adds ".span_start()" and ".span_end()" methods to our
internal "PrimitiveProvider" interface, for use by Alternative
backends for Hypothesis.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.121.2
This patch updates our autoformatting tools, improving our code style
without any API changes.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.121.1
This release brings back the old representation of
"hypothesis.stateful.Bundle", reverting most changes of PR #4124.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.121.0
This release adds "BackgroundWriteDatabase", a new database backend
which defers writes on the wrapped database to a background thread.
This allows for low-overhead writes in performance-critical
environments like fuzz_one_input.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.120.0
-
This release changes our input distribution for low "max_examples".
Previously, we capped the size of inputs when generating at least
the first 10 inputs, with the reasoning that early inputs to a
property should be small. However, this meant properties with
"max_examples=10" would consistent entirely of small inputs. This
patch removes the hard lower bound so that inputs to these
properties are more representative of the input space. -
When a user requests an interactive input via "strategy.example", we
generate and cache a batch of 100 inputs, returning the first one.
This can be expensive for large strategies or when only a few
examples are needed. This release improves the speed of
"strategy.example" by lowering the batch size to 10.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.119.4
This patch fixes a bug since 6.99.13 - 2024-03-24 where only
interactively-generated values (via "data.draw") would be reported in
the "arguments" field of our observability output. Now, all values are
reported.
The canonical version of these notes (with links) is on readthedocs.