Hypothesis

Latest version: v6.104.0

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

Scan your dependencies

Page 133 of 198

3.83.2

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

Hypothesis has adopted :pypi:`Black` as our code formatter (:issue:`1686`).
There are no functional changes to the source, but it's prettier!

3.83.1

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

This patch increases the variety of examples generated by
:func:`~hypothesis.strategies.from_type`.

3.83.0

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

Our pytest plugin now warns you when strategy functions have been collected
as tests, which may happen when e.g. using the
:func:`composite <hypothesis.strategies.composite>` decorator when you
should be using ``given(st.data())`` for inline draws.
Such functions *always* pass when treated as tests, because the lazy creation
of strategies mean that the function body is never actually executed!

3.82.6

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

Hypothesis can now :ref:`show statistics <statistics>` when running
under :pypi:`pytest-xdist`. Previously, statistics were only reported
when all tests were run in a single process (:issue:`700`).

3.82.5

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

This patch fixes :issue:`1667`, where passing bounds of Numpy
dtype ``int64`` to :func:`~hypothesis.strategies.integers` could
cause errors on Python 3 due to internal rounding.

3.82.4

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

Hypothesis now seeds and resets the global state of
:mod:`np.random <numpy:numpy.random>` for each
test case, to ensure that tests are reproducible.

This matches and complements the existing handling of the
:mod:`python:random` module - Numpy simply maintains an
independent PRNG for performance reasons.

Page 133 of 198

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.