github HypothesisWorks/hypothesis hypothesis-python-6.1.0
Hypothesis for Python - version 6.1.0

latest releases: hypothesis-python-6.119.1, hypothesis-python-6.119.0, hypothesis-python-6.118.9...
3 years ago

This release teaches Hypothesis to distinguish between errors based on
the cause or context of otherwise identical exceptions, which
is particularly useful when internal errors can be wrapped by a
library-specific or semantically appropriate exception such as:

try:
do_the_thing(foo, timeout=10)
except Exception as err:
raise FooError("Failed to do the thing") from err

Earlier versions of Hypothesis only see the "FooError", while we can
now distinguish a "FooError" raised because of e.g. an internal
assertion from one raised because of a "TimeoutExceeded" exception.

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

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.