This release improves Hypothesis' handling of positional-only arguments,
which are now allowed :func:
On Python 3.8 and later, the first arguments to :func:
~hypothesis.extra.django.from_model are now natively positional-only.
In cases which were already errors, the
TypeError from incorrect usage will
therefore be raises immediately when the function is called, rather than when
the strategy object is used.
This release makes :func:
~hypothesis.strategies.floats error consistently when
your floating-point hardware has been configured to violate IEEE-754 for
subnormal numbers <Subnormal_number>, instead of
only when an internal assertion was tripped (:issue:
If this happens to you, passing
allow_subnormal=False will suppress the explicit
error. However, we strongly recommend fixing the root cause by disabling global-effect
unsafe-math compiler options instead, or at least consulting e.g. Simon Byrne's
Beware of fast-math <https://simonbyrne.github.io/notes/fastmath/>__ explainer first.
This patch fixes a bug in stateful testing, where returning a single value
wrapped in :func:
~hypothesis.stateful.multiple would be printed such that
the assigned variable was a tuple rather than the single element
This patch fixes a warning under :pypi:
pytest 7 relating to our
rich traceback display logic (:issue:
When distinguishing multiple errors, Hypothesis now looks at the inner
exceptions of :pep:
This patch updates our vendored
list of top-level domains <https://www.iana.org/domains/root/db>__,
which is used by the provisional :func:
This patch fixes some deprecation warnings from :pypi:
along with some code formatting and docs updates.
sudo dnf upgrade --refresh --advisory=FEDORA-2022-2b32c63931
Please login to add feedback.