Skip to content

Releases

Hypothesis version 6.170.15

Choose a tag to compare

@Zac-HD Zac-HD released this 06 Nov 09:55

Hypothesis now has 100% type coverage of our public API, as checked by
pyrefly.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.14

Choose a tag to compare

@Zac-HD Zac-HD released this 30 Oct 06:52

This patch adjusts coverage settings for new dependencies; there is no
user-visible change.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.13

Choose a tag to compare

@Zac-HD Zac-HD released this 28 Oct 14:04

This patch fixes the codemod for deprecated "characters()" arguments,
which previously raised an error when "**kwargs" were also passed.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.12

Choose a tag to compare

@Zac-HD Zac-HD released this 26 Oct 17:12

This patch reduces Hypothesis' overhead for each test case. For simple
properties and strategies, generating test cases takes up to a third
less time and shrinking failing examples is up to twice as fast; most
tests will see a smaller improvement. "import hypothesis" is also
about 20% faster.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.11

Choose a tag to compare

@Zac-HD Zac-HD released this 26 Oct 01:01

This patch makes writing observability data to ".hypothesis/observed"
cheaper when tests run in multiple threads, and defers cleaning up old
observation files from import time until observations are first
written.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.10

Choose a tag to compare

@Zac-HD Zac-HD released this 25 Oct 22:44

This patch fixes an internal error from "lists()" with "unique=True",
when the elements are a filtered "sampled_from()" with too few allowed
values to reach "min_size". It also ensures that "domains()" always
generates at least one subdomain, even with a small "max_length".

We also fixed some internal bookkeeping that could go wrong when an
exception was raised and caught during generation, for example by
"recursive()", which could make shrinking less effective.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.9

Choose a tag to compare

@Zac-HD Zac-HD released this 23 Oct 23:20

This release fixes a "DeprecationWarning" when importing
"hypothesis.extra.dateutil" with dateutil 3.0 or higher (issue #4934).

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.8

Choose a tag to compare

@Zac-HD Zac-HD released this 22 Oct 23:01

This patch fixes a regression in version 6.170.1, where unique
collections of non-empty collections, such as
"st.sets(st.frozensets(st.integers(), min_size=1), min_size=1)", could
fail the "HealthCheck.large_base_example" health check (issue #4918).

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.7

Choose a tag to compare

@Zac-HD Zac-HD released this 22 Oct 21:30

This improves type coverage of stateful testing.

The canonical version of these notes (with links) is on readthedocs.

Hypothesis version 6.170.6

Choose a tag to compare

@Zac-HD Zac-HD released this 22 Oct 19:53

This patch adds PyPy 3.12 wheels to releases (issue #4921).

Thanks to @moreati for this contribution!

The canonical version of these notes (with links) is on readthedocs.