Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 182 of 195

3.1.2

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

Single bug fix release:

* Anything which used a :func:`~hypothesis.strategies.text` or
:func:`~hypothesis.strategies.characters` strategy was broken on Windows
and I hadn't updated appveyor to use the new repository location so I didn't
notice. This is now fixed and windows support should work correctly.

3.1.1

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

Minor bug fix release.

* Fix concurrency issue when running tests that use :func:`~hypothesis.strategies.text` from multiple
processes at once (:issue:`302`, thanks to Alex Chan).
* Improve performance of code using :func:`~hypothesis.strategies.lists` with max_size (thanks to
Cristi Cobzarenco).
* Fix install on Python 2 with ancient versions of pip so that it installs the
:pypi:`enum34` backport (thanks to Donald Stufft for telling me how to do this).
* Remove duplicated __all__ exports from hypothesis.strategies (thanks to
Piët Delport).
* Update headers to point to new repository location.
* Allow use of strategies that can't be used in ``find()``
(e.g. ``choices()``) in stateful testing.

3.1.0

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

* Add a :func:`~hypothesis.strategies.nothing` strategy that never successfully generates values.
* :func:`~hypothesis.strategies.sampled_from` and :func:`~hypothesis.strategies.one_of`
can both now be called with an empty argument
list, in which case they also never generate any values.
* :func:`~hypothesis.strategies.one_of` may now be called with a single argument that is a collection of strategies
as well as as varargs.
* Add a :func:`~hypothesis.strategies.runner` strategy which returns the instance of the current test object
if there is one.
* 'Bundle' for RuleBasedStateMachine is now a normal(ish) strategy and can be used
as such.
* Tests using RuleBasedStateMachine should now shrink significantly better.
* Hypothesis now uses a pretty-printing library internally, compatible with IPython's
pretty printing protocol (actually using the same code). This may improve the quality
of output in some cases.
* Add a 'phases' setting that allows more fine grained control over which parts of the
process Hypothesis runs
* Add a suppress_health_check setting which allows you to turn off specific health checks
in a fine grained manner.
* Fix a bug where lists of non fixed size would always draw one more element than they
included. This mostly didn't matter, but if would cause problems with empty strategies
or ones with side effects.
* Add a mechanism to the Django model generator to allow you to explicitly request the
default value (thanks to Jeremy Thurgood for this one).

3.0.5

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

* Fix a bug where Hypothesis would now error on :pypi:`pytest` development versions.

3.0.4

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

* Fix a bug where Hypothesis would error when running on Python 2.7.3 or
earlier because it was trying to pass a :class:`python:bytearray` object
to :func:`python:struct.unpack` (which is only supported since 2.7.4).

3.0.3

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

* Fix version parsing of pytest to work with pytest release candidates
* More general handling of the health check problem where things could fail because
of a cache miss - now one "free" example is generated before the start of the
health check run.

Page 182 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.