Path to this page:
Subject: CVS commit: pkgsrc/devel/py-hypothesis
From: Adam Ciarcinski
Date: 2024-01-16 07:06:02
Message id: 20240116060602.7D1E7FA42@cvs.NetBSD.org
Log Message:
py-hypothesis: updated to 6.93.2
6.93.2
This patch improves observability reports by moving timing information from \
metadata to a new timing key, and supporting conversion of additional argument \
types to json rather than string reprs via a .to_json() method (including e.g. \
Pandas dataframes).
Additionally, the too_slow health check will now report which strategies were \
slow, e.g. for strategies a, b, c, …:
count | fraction | slowest draws (seconds)
a | 3 | 65% | -- -- -- 0.357, 2.000
b | 8 | 16% | 0.100, 0.100, 0.100, 0.111, 0.123
c | 3 | 8% | -- -- 0.030, 0.050, 0.200
(skipped 2 rows of fast draws)
6.93.1
This patch refactors some internals, continuing our work on supporting \
alternative backends. There is no user-visible change.
6.93.0
The from_lark() strategy now accepts an alphabet= argument, which is passed \
through to from_regex(), so that you can e.g. constrain the generated strings to \
a particular codec.
In support of this feature, from_regex() will avoid generating optional parts \
which do not fit the alphabet. For example, from_regex(r"abc|def", \
alphabet="abcd") was previously an error, and will now generate only \
'abc'. Cases where there are no valid strings remain an error.
6.92.9
This patch refactors some internals, continuing our work on supporting \
alternative backends. There is no user-visible change.
6.92.8
This patch adds a test statistics event when a generated example is rejected via \
assume.
This may also help with distinguishing gave_up examples in observability.
6.92.7
This introduces the rewriting of length filters on some collection strategies.
Thanks to Reagan Lee for implementing this feature!
6.92.6
If a test uses sampled_from() on a sequence of strategies, and raises a \
TypeError, we now add a note asking whether you meant to use one_of().
Files: