Releases: HypothesisWorks/hypothesis
Hypothesis for Python - version 6.61.0
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
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
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
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
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
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
"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
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
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
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.