Skip to content

Commit

Permalink
Bump hypothesis-python version to 4.11.0 and update changelog
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
DRMacIver committed Mar 12, 2019
1 parent f583a1b commit 918a206
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
10 changes: 0 additions & 10 deletions hypothesis-python/RELEASE.rst

This file was deleted.

15 changes: 15 additions & 0 deletions hypothesis-python/docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ Hypothesis APIs come in three flavours:
You should generally assume that an API is internal unless you have specific
information to the contrary.

.. _v4.11.0:

-------------------
4.11.0 - 2019-03-12
-------------------

This release deprecates :func:`~hypothesis.strategies.sampled_from` with empty
sequences. This returns :func:`~hypothesis.strategies.nothing`, which gives a
clear error if used directly... but simply vanishes if combined with another
strategy.

Tests that silently generate less than expected are a serious problem for
anyone relying on them to find bugs, and we think reliability more important
than convenience in this case.

.. _v4.10.0:

-------------------
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def sampled_from(elements):
"sampled_from() with nothing to sample is deprecated and will be an "
"error in a future version. It currently returns `st.nothing()`, "
"which if unexpected can make parts of a strategy silently vanish.",
since="RELEASEDAY",
since="2019-03-12",
)
return nothing()
if len(values) == 1:
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

from __future__ import absolute_import, division, print_function

__version_info__ = (4, 10, 0)
__version_info__ = (4, 11, 0)
__version__ = ".".join(map(str, __version_info__))

0 comments on commit 918a206

Please sign in to comment.