Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 186 of 195

1.11.1

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

Bug fixes:

* When running Hypothesis tests in parallel (e.g. using pytest-xdist) there was a race
condition caused by code generation.
* Example databases are now cached per thread so as to not use sqlite connections from
multiple threads. This should make Hypothesis now entirely thread safe.
* floats() with only min_value or max_value set would have had a very bad distribution.
* Running on 3.5, Hypothesis would have emitted deprecation warnings because of use of
inspect.getargspec

1.11.0

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

* text() with a non-string alphabet would have used the repr() of the the alphabet
instead of its contexts. This is obviously silly. It now works with any sequence
of things convertible to unicode strings.
* given will now work on methods whose definitions contains no explicit positional
arguments, only varargs (:issue:`118`).
This may have some knock on effects because it means that given no longer changes the
argspec of functions other than by adding defaults.
* Introduction of new composite feature for more natural definition of strategies you'd
previously have used flatmap for.

1.10.6

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

Fix support for fixtures on Django 1.7.

1.10.4

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

Tiny bug fix release:

* If the database_file setting is set to None, this would have resulted in
an error when running tests. Now it does the same as setting database to
None.

1.10.3

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

Another small bug fix release.

* lists(elements, unique_by=some_function, min_size=n) would have raised a
ValidationError if n > Settings.default.average_list_length because it would
have wanted to use an average list length shorter than the minimum size of
the list, which is impossible. Now it instead defaults to twice the minimum
size in these circumstances.
* basic() strategy would have only ever produced at most ten distinct values
per run of the test (which is bad if you e.g. have it inside a list). This
was obviously silly. It will now produce a much better distribution of data,
both duplicated and non duplicated.

1.10.2

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

This is a small bug fix release:

* star imports from hypothesis should now work correctly.
* example quality for examples using flatmap will be better, as the way it had
previously been implemented was causing problems where Hypothesis was
erroneously labelling some examples as being duplicates.

Page 186 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.