Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 147 of 195

3.66.0

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

This release improves validation of the ``alphabet`` argument to the
:func:`~hypothesis.strategies.text` strategy. The following misuses
are now deprecated, and will be an error in a future version:

- passing an unordered collection (such as ``set('abc')``), which
violates invariants about shrinking and reproducibility
- passing an alphabet sequence with elements that are not strings
- passing an alphabet sequence with elements that are not of length one,
which violates any size constraints that may apply

Thanks to Sushobhit for adding these warnings (:issue:`1329`).

3.65.3

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

This release fixes a mostly theoretical bug where certain usage of the internal
API could trigger an assertion error inside Hypothesis. It is unlikely that
this problem is even possible to trigger through the public API.

3.65.2

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

This release fixes dependency information for coverage. Previously Hypothesis
would allow installing :pypi:`coverage` with any version, but it only works
with coverage 4.0 or later.

We now specify the correct metadata in our ``setup.py``, so Hypothesis will
only allow installation with compatible versions of coverage.

3.65.1

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

This patch ensures that :doc:`stateful tests <stateful>` which raise an
error from a :pypi:`pytest` helper still print the sequence of steps
taken to reach that point (:issue:`1372`). This reporting was previously
broken because the helpers inherit directly from :class:`python:BaseException`, and
therefore require special handling to catch without breaking e.g. the use
of ctrl-C to quit the test.

3.65.0

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

This release deprecates the ``max_shrinks`` setting
in favor of an internal heuristic. If you need to avoid shrinking examples,
use the :obj:`~hypothesis.settings.phases` setting instead. (:issue:`1235`)

3.64.2

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

This release fixes a bug where an internal assertion error could sometimes be
triggered while shrinking a failing test.

Page 147 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.