Hypothesis

Latest version: v6.100.1

Safety actively analyzes 620800 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 172 of 195

3.22.1

Not secure
-------------------

Hypothesis now transparently handles problems with an internal unicode cache,
including file truncation or read-only filesystems (:issue:`767`).
Thanks to Sam Hames for the patch.

3.22.0

Not secure
-------------------

This release provides what should be a substantial performance improvement to
numpy arrays generated using :ref:`provided numpy support <hypothesis-numpy>`,
and adds a new ``fill_value`` argument to :func:`~hypothesis.extra.numpy.arrays`
to control this behaviour.

This work was funded by `Stripe <https://stripe.com/>`_.

3.21.3

Not secure
-------------------

This release fixes some extremely specific circumstances that probably have
never occurred in the wild where users of
:func:`~hypothesis.strategies.deferred` might have seen a :class:`python:RuntimeError` from
too much recursion, usually in cases where no valid example could have been
generated anyway.

3.21.2

Not secure
-------------------

This release fixes some minor bugs in argument validation:

* :ref:`hypothesis.extra.numpy <hypothesis-numpy>` dtype strategies would raise an internal error
instead of an InvalidArgument exception when passed an invalid
endianness specification.
* :func:`~hypothesis.strategies.fractions` would raise an internal error instead of an InvalidArgument
if passed ``float("nan")`` as one of its bounds.
* The error message for passing ``float("nan")`` as a bound to various
strategies has been improved.
* Various bound arguments will now raise InvalidArgument in cases where
they would previously have raised an internal TypeError or
ValueError from the relevant conversion function.
* ``streaming()`` would not have emitted a
deprecation warning when called with an invalid argument.

3.21.1

Not secure
-------------------

This release fixes a bug where test failures that were the result of
an :obj:`example <hypothesis.example>` would print an extra stack trace before re-raising the
exception.

3.21.0

Not secure
-------------------

This release deprecates Hypothesis's strict mode, which turned Hypothesis's
deprecation warnings into errors. Similar functionality can be achieved
by using :func:`simplefilter('error', HypothesisDeprecationWarning) <python:warnings.simplefilter>`.

Page 172 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.