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

Scheduled weekly dependency update for week 41 #162

Closed
wants to merge 2 commits into from

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Oct 9, 2017

Updates

Here's a list of all the updates bundled in this pull request. I've added some links to make it easier for you to find all the information you need.

hypothesis 3.31.2 » 3.32.0 PyPI | Changelog | Repo
pyasn1 0.3.6 » 0.3.7 PyPI | Changelog | Repo

Changelogs

hypothesis 3.31.2 -> 3.32.0

3.32.0


This changes the default value of
:attr:use_coverage=True <hypothesis.settings.use_coverage> to True when
running on pypy (it was already True on CPython).

It was previously set to False because we expected it to be too slow, but
recent benchmarking shows that actually performance of the feature on pypy is
fairly acceptable - sometimes it's slower than on CPython, sometimes it's
faster, but it's generally within a factor of two either way.


3.31.6


This patch improves the quality of strategies inferred from Numpy dtypes:

  • Integer dtypes generated examples with the upper half of their (non-sign) bits
    set to zero. The inferred strategies can now produce any representable integer.
  • Fixed-width unicode- and byte-string dtypes now cap the internal example
    length, which should improve example and shrink quality.
  • Numpy arrays can only store fixed-size strings internally, and allow shorter
    strings by right-padding them with null bytes. Inferred string strategies
    no longer generate such values, as they can never be retrieved from an array.
    This improves shrinking performance by skipping useless values.

This has already been useful in Hypothesis - we found an overflow bug in our
Pandas support, and as a result :func:~hypothesis.extra.pandas.indexes and
:func:~hypothesis.extra.pandas.range_indexes now check that min_size
and max_size are at least zero.


3.31.5


This release fixes a performance problem in tests where
:attr:~hypothesis.settings.use_coverage is set to True.

Tests experience a slow-down proportionate to the amount of code they cover.
This is still the case, but the factor is now low enough that it should be
unnoticeable. Previously it was large and became much larger in 3.28.4.


3.31.4


:func:~hypothesis.strategies.from_type failed with a very confusing error
if passed a :func:~python:typing.NewType (:issue:901). These psudeo-types
are now unwrapped correctly, and strategy inference works as expected.


3.31.3


This release makes some small optimisations to our use of coverage that should
reduce constant per-example overhead. This is probably only noticeable on
examples where the test itself is quite fast. On no-op tests that don't test
anything you may see up to a fourfold speed increase (which is still
significantly slower than without coverage). On more realistic tests the speed
up is likely to be less than that.


That's it for now!

Happy merging! 🤖


This change is Reviewable

@codecov
Copy link

codecov bot commented Oct 9, 2017

Codecov Report

Merging #162 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #162   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           7      7           
  Lines         187    187           
  Branches       14     14           
=====================================
  Hits          187    187

@pyup-bot
Copy link
Contributor Author

Closing this in favor of #163

@pyup-bot pyup-bot closed this Oct 16, 2017
@mithrandi mithrandi deleted the pyup-scheduled-update-10-09-2017 branch October 16, 2017 13:44
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