Skip to content

Releases: HypothesisWorks/hypothesis

Hypothesis for Python - version 6.61.0

11 Dec 21:18
Compare
Choose a tag to compare

This release improves our treatment of database keys, which based on
(among other things) the source code of your test function. We now
post-process this source to ignore decorators, comments, trailing
whitespace, and blank lines - so that you can add "@example()"s or
make some small no-op edits to your code without preventing replay of
any known failing or covering examples.

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

Hypothesis for Python - version 6.60.1

11 Dec 19:20
Compare
Choose a tag to compare

This patch updates our vendored list of top-level domains, which is
used by the provisional "domains()" strategy.

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

Hypothesis for Python - version 6.60.0

04 Dec 05:49
Compare
Choose a tag to compare

This release improves Hypothesis' ability to resolve forward
references in type annotations. It fixes a bug that prevented
"builds()" from being used with pydantic models that possess updated
forward references. See issue #3519.

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

Hypothesis for Python - version 6.59.0

02 Dec 02:07
Compare
Choose a tag to compare

The "@example(...)" decorator now has a ".via()" method, which future
tools will use to track automatically-added covering examples (issue
#3506).

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

Hypothesis for Python - version 6.58.2

30 Nov 09:56
Compare
Choose a tag to compare

This patch updates our vendored list of top-level domains, which is
used by the provisional "domains()" strategy.

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

Hypothesis for Python - version 6.58.1

26 Nov 01:34
Compare
Choose a tag to compare

This patch shifts "hypothesis[lark]" from depending on the old lark-
parser package to the new lark package. There are no code changes in
Hypothesis, it's just that Lark got a new name on PyPI for version 1.0
onwards.

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

Hypothesis for Python - version 6.58.0

19 Nov 23:13
Compare
Choose a tag to compare

"register_random()" has used "weakref" since 6.27.1 - 2021-11-22,
allowing the "Random"-compatible objects to be garbage-collected when
there are no other references remaining in order to avoid memory
leaks. We now raise an error or emit a warning when this seems likely
to happen immediately.

The type annotation of "register_random()" was also widened so that
structural subtypes of "Random" are accepted by static typecheckers.

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

Hypothesis for Python - version 6.57.1

14 Nov 07:13
Compare
Choose a tag to compare

This patch updates some internal type annotations and fixes a
formatting bug in the "explain" phase reporting.

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

Hypothesis for Python - version 6.57.0

14 Nov 04:59
Compare
Choose a tag to compare

Hypothesis now raises an error if you passed a strategy as the
"alphabet=" argument to "text()", and it generated something which was
not a length-one string. This has never been supported, we're just
adding explicit validation to catch cases like this StackOverflow
question.

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

Hypothesis for Python - version 6.56.4

28 Oct 07:41
Compare
Choose a tag to compare

This patch updates some docs, and depends on exceptiongroup 1.0.0
final to avoid a bug in the previous version.

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