Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hypothesis to 3.42.1 #116

Merged
merged 2 commits into from
Dec 10, 2017
Merged

Conversation

pyup-bot
Copy link
Collaborator

There's a new version of hypothesis available.
You are currently using 3.38.0. I have updated it to 3.42.1

These links might come in handy: PyPI | Changelog | Repo

Changelog

3.42.1


This release has some internal cleanup, which makes reading the code
more pleasant and may shrink large examples slightly faster.


3.42.0


This release deprecates :ref:faker-extra, which was designed as a transition
strategy but does not support example shrinking or coverage-guided discovery.


3.41.0


:func:~hypothesis.strategies.sampled_from can now sample from
one-dimensional numpy ndarrays. Sampling from multi-dimensional
ndarrays still results in a deprecation warning. Thanks to Charlie
Tanksley for this patch.


3.40.1


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


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


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


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


3.38.8


This release improves the performance of
:func:~hypothesis.strategies.characters when using blacklist_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


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.


3.38.6


This patch changes a few byte-string literals from double to single quotes,
thanks to an update in :pypi:unify. There are no user-visible changes.


3.38.5


This fixes the repr of strategies using lambda that are defined inside
decorators to include the lambda source.

This would mostly have been visible when using the
:ref:statistics <statistics> functionality - lambdas used for e.g. filtering
would have shown up with a <unknown> as their body. This can still happen,
but it should happen less often now.


3.38.4


This release updates the reported :ref:statistics <statistics> so that they
show approximately what fraction of your test run time is spent in data
generation (as opposed to test execution).

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


3.38.3


This is a documentation release, which ensures code examples are up to date
by running them as doctests in CI (:issue:711).


3.38.2


This release changes the behaviour of the :attr:~hypothesis.settings.deadline
setting when used with :func:~hypothesis.strategies.data: Time spent inside
calls to data.draw will no longer be counted towards the deadline time.

As a side effect of some refactoring required for this work, the way flaky
tests are handled has changed slightly. You are unlikely to see much difference
from this, but some error messages will have changed.

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


3.38.1


This patch has a variety of non-user-visible refactorings, removing various
minor warts ranging from indirect imports to typos in comments.


Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@ericmjl ericmjl merged commit 872562f into master Dec 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants