hypothesis v4.28.1 Release Notes

Release Date: 2019-07-12 // about 2 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.