github HypothesisWorks/hypothesis hypothesis-python-4.28.1
Hypothesis for Python - version 4.28.1

latest releases: hypothesis-python-6.119.3, hypothesis-python-6.119.2, hypothesis-python-6.119.1...
5 years ago

This patch improves the behaviour of the "text()" strategy when passed
an "alphabet" which is not a strategy. The value is now interpreted
as "whitelist_characters" to "characters()" instead of a sequence for
"sampled_from()", which standardises the distribution of examples and
the shrinking behaviour.

You can get the previous behaviour by using
"lists(sampled_from(alphabet)).map("".map)" instead.

The canonical version of these notes (with links) is on readthedocs.

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.