Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 79 of 195

5.18.1

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

This release consists of some internal refactoring to the shrinker in preparation for future work. It has no user visible impact.

5.18.0

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

This release teaches Hypothesis to :ref:`shorten tracebacks <v3.79.2>` for
:ref:`explicit examples <providing-explicit-examples>`, as we already do
for generated examples, so that you can focus on your code rather than ours.

If you have multiple failing explicit examples, they will now all be reported.
To report only the first failure, you can use the :obj:`report_multiple_bugs=False
<hypothesis.settings.report_multiple_bugs>` setting as for generated examples.

5.17.0

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

This patch adds strategy inference for the ``Literal``, ``NewType``, ``Type``,
``DefaultDict``, and ``TypedDict`` types from the :pypi:`typing_extensions`
backport on PyPI.

5.16.3

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

This patch precomputes some of the setup logic for our
:ref:`external fuzzer integration <fuzz_one_input>` and sets
:obj:`deadline=None <hypothesis.settings.deadline>` in fuzzing mode,
saving around 150us on each iteration.

This is around two-thirds the runtime to fuzz an empty test with
``given(st.none())``, and nice to have even as a much smaller
fraction of the runtime for non-trivial tests.

5.16.2

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

This patch fixes an internal error when warning about the use of function-scoped fixtures
for parametrised tests where the parametrised value contained a ``%`` character.
Thanks to Bryant for reporting and fixing this bug!

5.16.1

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

If you pass a :class:`python:list` or :class:`python:tuple` where a
strategy was expected, the error message now mentions
:func:`~hypothesis.strategies.sampled_from` as an example strategy.

Thanks to the enthusiastic participants in the `PyCon Mentored Sprints
<https://us.pycon.org/2020/hatchery/mentoredsprints/>`__ who suggested
adding this hint.

Page 79 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.