Skip to content

Releases: HypothesisWorks/hypothesis

Hypothesis for Python - version 6.145.0

03 Nov 09:09

Choose a tag to compare

Hypothesis previously required attrs as a dependency. This release
removes that dependency, so that the only required dependency of
Hypothesis is sortedcontainers.

All attrs-specific features of Hypothesis, such as using "from_type()"
with attrs classes, will continue to behave as before.

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

Hypothesis for Python - version 6.144.1

03 Nov 07:23

Choose a tag to compare

Tweak how Hypothesis hides internal tracebacks to fix an error under
rare conditions (issue #3822).

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

Hypothesis for Python - version 6.144.0

02 Nov 22:10

Choose a tag to compare

This release adds support for "Fraction" objects as "min_value" and
"max_value" bounds in "decimals()", if they can be exactly represented
as decimals in the target precision (issue #4466).

Bounding "decimals()" with other values that cannot be exactly
represented is now deprecated; previously the bounds could be off by
one.

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

Hypothesis for Python - version 6.143.1

02 Nov 04:26

Choose a tag to compare

"from_type()" now correctly handles annotated-types annotations on
"typing.TypedDict" fields which are also marked as being "ReadOnly",
"Required", or "NotRequired" (issue #4474).

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

Hypothesis for Python - version 6.143.0

01 Nov 22:47

Choose a tag to compare

The extras for NumPy and pandas now support automatically inferring a
strategy for "dtype="O"". Previously, Hypothesis required an explicit
elements strategy to be passed, for example "nps.arrays("O",
shape=(1,), elements=st.just(object()))". Now, Hypothesis
automatically infers "elements=st.from_type(object)".

Thanks to Shaun Read for identifying and fixing this!

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

Hypothesis for Python - version 6.142.5

31 Oct 07:13

Choose a tag to compare

This patch fixes "binary_operation()" to include imports for
"hypothesis.extra.numpy" strategies such as "arrays()",
"scalar_dtypes()", and "array_shapes()" when ghostwriting tests for
functions with numpy array parameters (issue #4576).

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

Hypothesis for Python - version 6.142.4

25 Oct 16:19

Choose a tag to compare

Improve the accuracy of test timing reports, by tracking the start
time of each test case closer to when the test is executed.

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

Hypothesis for Python - version 6.142.3

22 Oct 19:22

Choose a tag to compare

Fix a recursion error when observability is enabled and a test
generates an object with a recursive reference, like "a = [];
a.append(a)".

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

Hypothesis for Python - version 6.142.2

20 Oct 16:08

Choose a tag to compare

Remove a case where Hypothesis would interact with the global
"random.Random" instance if Hypothesis internals were used directly.

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

Hypothesis for Python - version 6.142.1

16 Oct 21:06

Choose a tag to compare