Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 163 of 195

3.40.1

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

This release makes two changes:

* It makes the calculation of some of the metadata that Hypothesis uses for
shrinking occur lazily. This should speed up performance of test case
generation a bit because it no longer calculates information it doesn't need.
* It improves the shrinker for certain classes of nested examples. e.g. when
shrinking lists of lists, the shrinker is now able to concatenate two
adjacent lists together into a single list. As a result of this change,
shrinking may get somewhat slower when the minimal example found is large.

3.40.0

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

This release improves how various ways of seeding Hypothesis interact with the
example database:

* Using the example database with :func:`~hypothesis.seed` is now deprecated.
You should set ``database=None`` if you are doing that. This will only warn
if you actually load examples from the database while using ``seed``.
* The :attr:`~hypothesis.settings.derandomize` will behave the same way as
``seed``.
* Using ``--hypothesis-seed`` will disable use of the database.
* If a test used examples from the database, it will not suggest using a seed
to reproduce it, because that won't work.

This work was funded by `Smarkets <https://smarkets.com/>`_.

3.39.0

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

This release adds a new health check that checks if the smallest "natural"
possible example of your test case is very large - this will tend to cause
Hypothesis to generate bad examples and be quite slow.

This work was funded by `Smarkets <https://smarkets.com/>`_.

3.38.9

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

This is a documentation release to improve the documentation of shrinking
behaviour for Hypothesis's strategies.

3.38.8

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

This release improves the performance of
:func:`~hypothesis.strategies.characters` when using ``exclude_characters``
and :func:`~hypothesis.strategies.from_regex` when using negative character
classes.

The problems this fixes were found in the course of work funded by
`Smarkets <https://smarkets.com/>`_.

3.38.7

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

This is a patch release for :func:`~hypothesis.strategies.from_regex`, which
had a bug in handling of the :obj:`python:re.VERBOSE` flag (:issue:`992`).
Flags are now handled correctly when parsing regex.

Page 163 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.