Releases: HypothesisWorks/hypothesis
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.
Hypothesis for Python - version 6.119.3
Hypothesis collects coverage information during the "shrink" and
"explain" phases in order to show a more informative error message. On
3.12+, this uses "sys.monitoring". This patch improves the performance
of coverage collection on 3.12+ by disabling events we don't need.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.119.2
This patch refactors some internals to prepare for future work using
our IR (issue #3921).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.119.1
This patch migrates some more internals (around generating novel
inputs) to the IR layer (issue #3921).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.119.0
This release improves Hypothesis' handling of ExceptionGroup - it's
now able to detect marker detections if they're inside a group and
attempts to resolve them. Note that this handling is still a work in
progress and might not handle edge cases optimally. Please open issues
if you encounter any problems or unexpected behavior with it.
The canonical version of these notes (with links) is on readthedocs.