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.46.2 #167

Closed
wants to merge 2 commits into from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Mar 1, 2018

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

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

Changelog

3.46.2


This release removes an unnecessary branch from the code, and has no user-visible impact.


3.46.1


This changes only the formatting of our docstrings and should have no user-visible effects.


3.46.0


:func:~hypothesis.strategies.characters has improved docs about
what arguments are valid, and additional validation logic to raise a
clear error early (instead of e.g. silently ignoring a bad argument).
Categories may be specified as the Unicode 'general category'
(eg u'Nd'), or as the 'major category' (eg [u'N', u'Lu']
is equivalent to [u'Nd', u'Nl', u'No', u'Lu'].

In previous versions, general categories were supported and all other
input was silently ignored. Now, major categories are supported in
addition to general categories (which may change the behaviour of some
existing code), and all other input is deprecated.


3.45.5


This patch improves strategy inference in :mod:hypothesis.extra.django
to account for some validators in addition to field type - see
:issue:1116 for ongoing work in this space.

Specifically, if a :class:~django:django.db.models.CharField or
:class:~django:django.db.models.TextField has an attached
:class:~django:django.core.validators.RegexValidator, we now use
:func:~hypothesis.strategies.from_regex instead of
:func:~hypothesis.strategies.text as the underlying strategy.
This allows us to generate examples of the default
:class:~django:django.contrib.auth.models.User model, closing :issue:1112.


3.45.4


This patch improves some internal debugging information, fixes
a typo in a validation error message, and expands the documentation
for new contributors.


3.45.3


This patch may improve example shrinking slightly for some strategies.


3.45.2


This release makes our docstring style more consistent, thanks to
:pypi:flake8-docstrings. There are no user-visible changes.


3.45.1


This fixes an indentation issue in docstrings for
:func:~hypothesis.strategies.datetimes, :func:~hypothesis.strategies.dates,
:func:~hypothesis.strategies.times, and
:func:~hypothesis.strategies.timedeltas.


3.45.0


This release fixes :func:~hypothesis.strategies.builds so that target
can be used as a keyword argument for passing values to the target. The target
itself can still be specified as a keyword argument, but that behavior is now
deprecated. The target should be provided as the first positional argument.


3.44.26


This release fixes some formatting issues in the Hypothesis source code.
It should have no externally visible effects.


3.44.25


This release changes the way in which Hypothesis tries to shrink the size of
examples. It probably won't have much impact, but might make shrinking faster
in some cases. It is unlikely but not impossible that it will change the
resulting examples.


3.44.24


This release fixes dependency information when installing Hypothesis
from a binary "wheel" distribution.

  • The install_requires for :pypi:enum34 is resolved at install
    time, rather than at build time (with potentially different results).
  • Django has fixed their python_requires for versions 2.0.0 onward,
    simplifying Python2-compatible constraints for downstream projects.

3.44.23


This release improves shrinking in a class of pathological examples that you
are probably never hitting in practice. If you are hitting them in practice
this should be a significant speed up in shrinking. If you are not, you are
very unlikely to notice any difference. You might see a slight slow down and/or
slightly better falsifying examples.


3.44.22


This release fixes a dependency problem. It was possible to install
Hypothesis with an old version of :pypi:attrs, which would throw a
TypeError as soon as you tried to import hypothesis. Specifically, you
need attrs 16.0.0 or newer.

Hypothesis will now require the correct version of attrs when installing.


3.44.21


This change adds some additional structural information that Hypothesis will
use to guide its search.

You mostly shouldn't see much difference from this. The two most likely effects
you would notice are:

  1. Hypothesis stores slightly more examples in its database for passing tests.
  2. Hypothesis may find new bugs that it was previously missing, but it
    probably won't (this is a basic implementation of the feature that is
    intended to support future work. Although it is useful on its own, it's not
    very useful on its own).

3.44.20


This is a small refactoring release that changes how Hypothesis tracks some
information about the boundary of examples in its internal representation.

You are unlikely to see much difference in behaviour, but memory usage and
run time may both go down slightly during normal test execution, and when
failing Hypothesis might print its failing example slightly sooner.


3.44.19


This changes how we compute the default average_size for all collection
strategies. Previously setting a max_size without setting an
average_size would have the seemingly paradoxical effect of making data
generation slower, because it would raise the average size from its default.
Now setting max_size will either leave the default unchanged or lower it
from its default.

If you are currently experiencing this problem, this may make your tests
substantially faster. If you are not, this will likely have no effect on you.


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

Happy merging! 🤖

@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Mar 2, 2018

Closing this in favor of #168

@pyup-bot pyup-bot closed this Mar 2, 2018
@ericmjl ericmjl deleted the pyup-update-hypothesis-3.44.18-to-3.46.2 branch March 2, 2018 08:20
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.

1 participant