Skip to content

Releases: HypothesisWorks/hypothesis

Hypothesis for Python - version 6.122.4

19 Dec 04:45
Compare
Choose a tag to compare

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

08 Dec 21:34
Compare
Choose a tag to compare

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

08 Dec 21:12
Compare
Choose a tag to compare

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

01 Dec 19:54
Compare
Choose a tag to compare

Hypothesis for Python - version 6.122.0

29 Nov 23:20
Compare
Choose a tag to compare

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

29 Nov 09:04
Compare
Choose a tag to compare

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

29 Nov 02:12
Compare
Choose a tag to compare

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

28 Nov 06:49
Compare
Choose a tag to compare

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

27 Nov 23:39
Compare
Choose a tag to compare
  • 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

22 Nov 07:29
Compare
Choose a tag to compare

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.