Changelog History
Page 3
-
v5.10.0 Changes
April 18, 2020๐ This release improves our support for datetimes and times around DST
transitions."times()" and "datetimes()" are now sometimes generated with "fold=1",
indicating that they represent the second occurrence of a given wall-
time when clocks are set backwards. This may be set even when there is
no transition, in which case the "fold" value should be ignored.๐ฆ For consistency, timezones provided by the pytz package can now
generate imaginary times (such as the hour skipped over when clocks
'spring forward' to daylight saving time, or during some historical
๐ timezone transitions). All other timezones have always supported
generation of imaginary times.If you prefer the previous behaviour, "datetimes()" now takes an
0๏ธโฃ argument "allow_imaginary" which defaults to "True" but can be set to
"False" for any timezones strategy.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.9.1 Changes
April 16, 2020๐ This patch fixes the rendering of "binary()" docstring by using the
proper backticks syntax.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.9.0 Changes
April 15, 2020โ Failing tests which use "target()" now report the highest score
observed for each target alongside the failing example(s), even
โ without explicitly showing test statistics.โ This improves the debugging workflow for tests of accuracy, which
assert that the total imprecision is within some error budget - for
example, "abs(a - b) < 0.5". Previously, shrinking to a minimal
๐ failing example could often make errors seem smaller or more subtle
๐ than they really are (see the threshold problem, and issue #2180).โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.6 Changes
April 15, 2020๐ This patch improves the docstring of "binary()", the "repr()" of
โ "sampled_from()" on an "enum.Enum" subclass, and a warning in our
โ pytest plugin. There is no change in runtime behaviour.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.5 Changes
April 15, 2020๐ This release (potentially very significantly) improves the performance
โ of failing tests in some rare cases, mostly only relevant when using
โ targeted property-based testing, by stopping further optimisation of
โ unrelated test cases once a failing example is found.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.4 Changes
April 14, 2020๐ This release fixes issue #2395, where under some circumstances
โ targeted property-based testing could cause Hypothesis to get caught
in an infinite loop.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.3 Changes
April 12, 2020๐ This patch teaches "builds()" and "from_type()" to use the
" signature" attribute of classes where it has been set, improving
๐ our support for Pydantic models (in pydantic >= 1.5).โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.2 Changes
April 12, 2020๐ This release improves the performance of the part of the core engine
that deliberately generates duplicate values.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.1 Changes
April 12, 2020This patch improves "dates()" shrinking, to simplify year, month, and
day like "datetimes()" rather than minimizing the number of days since
2000-01-01.โ The canonical version of these notes (with links) is on readthedocs.
-
v5.8.0 Changes
March 24, 2020This release adds a .hypothesis.fuzz_one_input attribute to "@given"
โ tests, for easy integration with external fuzzers such as python-afl
๐ (supporting issue #171).โ The canonical version of these notes (with links) is on readthedocs.