Repository navigation
Update dependency hypothesis to v6.170.27 - #12
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
2 times, most recently
from
September 16, 2025 12:09
ff904b5 to
4c941b6
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
September 16, 2025 18:57
4c941b6 to
efe20f5
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
September 16, 2025 21:54
efe20f5 to
40c72ba
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
September 18, 2025 05:49
40c72ba to
20d6a0a
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
2 times, most recently
from
September 22, 2025 20:51
19ff84b to
27a0d2c
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
September 23, 2025 01:58
27a0d2c to
7e25ea8
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 5, 2025 00:49
7e25ea8 to
b0b2d11
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 14, 2025 17:11
b0b2d11 to
cd7ca04
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 15, 2025 05:50
cd7ca04 to
47d8e90
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 15, 2025 22:36
47d8e90 to
2ecc635
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 16, 2025 09:48
2ecc635 to
a356506
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 16, 2025 21:40
a356506 to
b5ea078
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
October 20, 2025 16:31
b5ea078 to
4935b09
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 3, 2025 11:09
1afb351 to
10b186a
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 3, 2025 22:32
10b186a to
2f7783f
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 5, 2025 11:33
2f7783f to
5e488c0
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 6, 2025 23:04
5e488c0 to
6944232
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 15, 2025 10:16
6944232 to
124edbe
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 16, 2025 09:52
124edbe to
1ae49bb
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 19, 2025 01:51
1ae49bb to
70776b3
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
November 27, 2025 09:38
70776b3 to
e11f13c
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
December 1, 2025 08:40
e11f13c to
aab1faa
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
December 4, 2025 06:16
aab1faa to
ee718ee
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
December 5, 2025 04:03
ee718ee to
376c638
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
December 23, 2025 04:59
376c638 to
8677724
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
January 1, 2026 06:37
8677724 to
900f442
Compare
renovate
Bot
force-pushed
the
renovate/hypothesis-6.x-lockfile
branch
from
January 3, 2026 21:08
900f442 to
66a8ad8
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
6.138.14→6.170.27Release Notes
HypothesisWorks/hypothesis (hypothesis)
v6.170.27: Hypothesis version 6.170.27Compare Source
This patch fixes a bug where settings applied to a
"RuleBasedStateMachine" subclass with the "@settings" decorator were
silently discarded once more than 128 state machine classes had been
created.
The canonical version of these notes (with links) is on readthedocs.
v6.170.26: Hypothesis version 6.170.26Compare Source
This patch fixes a shrinking pass that simultaneously reduces nearby
integers with a fixed relative difference, which previously failed
when shrinking towards a non-zero target (such as year values in
"dates()").
The canonical version of these notes (with links) is on readthedocs.
v6.170.25: Hypothesis version 6.170.25Compare Source
This patch fixes "shared()" ignoring a "key" which is falsy, such as
"0", "False" or """". Strategies with the same falsy key now share a
value, like strategies with any other key (issue #4992).
Thanks to Justin Guida for this fix!
The canonical version of these notes (with links) is on readthedocs.
v6.170.24: Hypothesis version 6.170.24Compare Source
Quitting the debugger ("q" in "pdb", which raises "bdb.BdbQuit", or
"pytest.exit()", which pytest's own debugger wrapper uses) inside a
test decorated with "@given" now stops the run immediately, in the
same way as "KeyboardInterrupt".
Previously these exceptions were treated as ordinary test failures, so
Hypothesis would go on to shrink the "failure", hitting any
"breakpoint()" in the test again on every shrink attempt and making it
very hard to get out of the debugger.
The canonical version of these notes (with links) is on readthedocs.
v6.170.23: Hypothesis version 6.170.23Compare Source
This patch reduces the overhead of running each test case, by up to
10% for "@given" tests with several arguments, by managing the global
"random" state more cheaply.
The canonical version of these notes (with links) is on readthedocs.
v6.170.22: Hypothesis version 6.170.22Compare Source
This patch speeds up startup for concurrent processes which do not yet
have a constants cache, such as pytest-xdist workers in CI. Each
process now scans local modules in a different order, so that they
mostly share work instead of repeating it (issue #4978).
The canonical version of these notes (with links) is on readthedocs.
v6.170.21: Hypothesis version 6.170.21Compare Source
This patch updates our vendored list of top-level domains, which is
used by the provisional "domains()" strategy.
The canonical version of these notes (with links) is on readthedocs.
v6.170.20: Hypothesis version 6.170.20Compare Source
This patch makes collecting constants from local modules faster when
many test modules are imported, by recognising test files from their
path before resolving it on disk (issue #4978).
The canonical version of these notes (with links) is on readthedocs.
v6.170.19: Hypothesis version 6.170.19Compare Source
This patch makes finding timezone transitions for "datetimes()" about
30% faster, by calling "tz.fromutc()" directly instead of converting
through UTC first.
The canonical version of these notes (with links) is on readthedocs.
v6.170.18: Hypothesis version 6.170.18Compare Source
This patch makes the "Random" instances generated by "randoms()" more
closely match the error behavior of the real "random.Random" for
invalid arguments.
The canonical version of these notes (with links) is on readthedocs.
v6.170.17: Hypothesis version 6.170.17Compare Source
This patch fixes a performance regression on Python 3.12 and 3.13,
where the "sys.monitoring" line events for "Phase.explain" were left
enabled even after the test had completed (issue #4964).
Thanks to Anubhav Lal for this fix!
The canonical version of these notes (with links) is on readthedocs.
v6.170.16: Hypothesis version 6.170.16Compare Source
This patch speeds up shrinking by comparing a candidate against the
current shrink target lazily, instead of computing the sort key of
every choice on each attempt.
It also avoids a deprecation warning on import under Python 3.16.
The canonical version of these notes (with links) is on readthedocs.
v6.170.15: Hypothesis version 6.170.15Compare Source
Hypothesis now has 100% type coverage of our public API, as checked by
pyrefly.
The canonical version of these notes (with links) is on readthedocs.
v6.170.14: Hypothesis version 6.170.14Compare Source
This patch adjusts coverage settings for new dependencies; there is no
user-visible change.
The canonical version of these notes (with links) is on readthedocs.
v6.170.13: Hypothesis version 6.170.13Compare Source
This patch fixes the codemod for deprecated "characters()" arguments,
which previously raised an error when "**kwargs" were also passed.
The canonical version of these notes (with links) is on readthedocs.
v6.170.12: Hypothesis version 6.170.12Compare Source
This patch reduces Hypothesis' overhead for each test case. For simple
properties and strategies, generating test cases takes up to a third
less time and shrinking failing examples is up to twice as fast; most
tests will see a smaller improvement. "import hypothesis" is also
about 20% faster.
The canonical version of these notes (with links) is on readthedocs.
v6.170.11: Hypothesis version 6.170.11Compare Source
This patch makes writing observability data to ".hypothesis/observed"
cheaper when tests run in multiple threads, and defers cleaning up old
observation files from import time until observations are first
written.
The canonical version of these notes (with links) is on readthedocs.
v6.170.10: Hypothesis version 6.170.10Compare Source
This patch fixes an internal error from "lists()" with "unique=True",
when the elements are a filtered "sampled_from()" with too few allowed
values to reach "min_size". It also ensures that "domains()" always
generates at least one subdomain, even with a small "max_length".
We also fixed some internal bookkeeping that could go wrong when an
exception was raised and caught during generation, for example by
"recursive()", which could make shrinking less effective.
The canonical version of these notes (with links) is on readthedocs.
v6.170.9: Hypothesis version 6.170.9Compare Source
This release fixes a "DeprecationWarning" when importing
"hypothesis.extra.dateutil" with dateutil 3.0 or higher (issue #4934).
The canonical version of these notes (with links) is on readthedocs.
v6.170.8: Hypothesis version 6.170.8Compare Source
This patch fixes a regression in version 6.170.1, where unique
collections of non-empty collections, such as
"st.sets(st.frozensets(st.integers(), min_size=1), min_size=1)", could
fail the "HealthCheck.large_base_example" health check (issue #4918).
The canonical version of these notes (with links) is on readthedocs.
v6.170.7: Hypothesis version 6.170.7Compare Source
This improves type coverage of stateful testing.
The canonical version of these notes (with links) is on readthedocs.
v6.170.6: Hypothesis version 6.170.6Compare Source
This patch adds PyPy 3.12 wheels to releases (issue #4921).
Thanks to @moreati for this contribution!
The canonical version of these notes (with links) is on readthedocs.
v6.170.5: Hypothesis version 6.170.5Compare Source
This patch fixes a bug for users of our "PrimitiveProvider" interface,
where "draw_integer" could incorrectly reuse weights from an earlier
draw (issue #4908).
The canonical version of these notes (with links) is on readthedocs.
v6.170.4: Hypothesis version 6.170.4Compare Source
This fills in the missing type annotations for public-facing
attributes of "settings", such as "settings.max_examples" and
"settings.database".
The canonical version of these notes (with links) is on readthedocs.
v6.170.3: Hypothesis version 6.170.3Compare Source
This patch fixes an internal error when the shrinker tried certain
invalid values, for example when shrinking "one_of()" between text
strategies with different alphabets (issue #4905).
The canonical version of these notes (with links) is on readthedocs.
v6.170.2: Hypothesis version 6.170.2Compare Source
Add support for Python 3.16, which is still in alpha.
The canonical version of these notes (with links) is on readthedocs.
v6.170.1: Hypothesis version 6.170.1Compare Source
This patch makes generating unique collections, such as "sets()" or
"lists()" with "unique=True", considerably more efficient (issue
#4458). Hypothesis no longer mutates test cases by copying one element
of a unique collection over another element of the same collection,
and no longer probes for minimal examples by drawing every element at
its simplest value - both of which were certain to be rejected, and
could waste several times as many draws from the element strategy as
were actually returned.
The canonical version of these notes (with links) is on readthedocs.
v6.170.0: Hypothesis version 6.170.0Compare Source
This release substantially strengthens "run_conformance_test()", which
authors of alternative backends can use to test their provider. It can
now test providers with required constructor arguments, runs many test
cases against each provider, treats running out of entropy as expected
control flow, and checks that providers are able to generate a
representative range of values.
These new checks catch two bugs in the provider underlying
fuzz_one_input, which this release also fixes: integer draws could
never generate negative values, and string draws from an empty
alphabet consumed the whole buffer instead of returning the empty
string.
Verbose output for stateful tests now reads "Test case: " rather than trailing off after the colon.
Thanks to @reachsridhard for reporting the integers bug and
prototyping these improvements.
The canonical version of these notes (with links) is on readthedocs.
v6.169.4: Hypothesis version 6.169.4Compare Source
This release fixes an error when applying "@given" on Python 3.14 to
functions with annotations referring to types that are only available
during type checking, when explicit strategies are supplied (issue
#4897).
Thanks to Arjun Aravind for this fix!
The canonical version of these notes (with links) is on readthedocs.
v6.169.3: Hypothesis version 6.169.3Compare Source
The ".seed()" method of "randoms()" now accepts the same arguments as
"random.Random.seed()", such as "a=" and "version=". Previously, it
required exactly one positional argument. Calling ".seed()" without a
seed now raises a clearer error.
The canonical version of these notes (with links) is on readthedocs.
v6.169.2: Hypothesis version 6.169.2Compare Source
The Ghostwriter now raises a helpful error for functions which take no
arguments, instead of writing a test with an invalid empty "@given()"
decorator (issue #4882).
Thanks to deepak7lal for this fix!
The canonical version of these notes (with links) is on readthedocs.
v6.169.1: Hypothesis version 6.169.1Compare Source
Calling ".map()" or ".flatmap()" on "data()" with a keyword argument
now raises the intended error explaining that this is not supported,
instead of a generic error about an unexpected keyword argument.
The canonical version of these notes (with links) is on readthedocs.
v6.169.0: Hypothesis version 6.169.0Compare Source
This release drops support for Python 3.10, which reached end of life
in October 2026.
The canonical version of these notes (with links) is on readthedocs.
v6.168.5: Hypothesis version 6.168.5Compare Source
This patch fixes the type annotation of "from_field()", which claimed
to return a strategy for instances of the field type rather than for
values of the field.
The canonical version of these notes (with links) is on readthedocs.
v6.168.4: Hypothesis version 6.168.4Compare Source
This patch adds support for PyPy 3.12.
The canonical version of these notes (with links) is on readthedocs.
v6.168.3: Hypothesis version 6.168.3Compare Source
This patch fixes quadratic-time behaviour when summarising the
statistics of a test run, which Hypothesis does for every test when
running under pytest. This avoids an apparent hang after the last test
case with a high number of test cases (>100k).
The canonical version of these notes (with links) is on readthedocs.
v6.168.2: Hypothesis version 6.168.2Compare Source
This patch makes writes to the cache of constants collected from local
source files atomic. Previously, a concurrent process sharing the same
".hypothesis" directory, such as another pytest-xdist worker, could
read a partially written cache file, which silently changed the data
generated for a given "@seed" (issue #4885).
The canonical version of these notes (with links) is on readthedocs.
v6.168.1: Hypothesis version 6.168.1Compare Source
We now publish abi3 wheels for Linux s390x (manylinux) and Linux i686
(musllinux).
The canonical version of these notes (with links) is on readthedocs.
v6.168.0: Hypothesis version 6.168.0Compare Source
"datetimes()" now generates "tricky" datetimes more often: values on
or near daylight-saving and other utc-offset transitions of the drawn
timezone - including imaginary wall times, and ambiguous ones with
each value of "fold" - as well as times adjacent to leap seconds and
to well-known datetimes like the millennium and the end of the signed
32-bit Unix epoch (issue #69).
This release also fixes some rare internal errors, where an error
raised partway through updating an internal cache - for example by a
deeply recursive strategy raising "RecursionError" - could leave that
cache corrupted.
The canonical version of these notes (with links) is on readthedocs.
v6.167.1: Hypothesis version 6.167.1Compare Source
This patch improves shrinking and generation for collection strategies
which reject some drawn elements, such as "lists()" with
"unique=True". Rejected elements are now marked as discarded, so the
shrinker can delete them wholesale and generation avoids revisiting
choices that would be rejected again.
The canonical version of these notes (with links) is on readthedocs.
v6.167.0: Hypothesis version 6.167.0Compare Source
Test case observations from observability now give more detail about
why a test case failed or was abandoned (issue #3845). "metadata"
includes a new "status_reason_location" key: a "filename:lineno"
location for the "status_reason", if known - for example the location
of a failing "assume()" call, the ".filter()" call whose predicate
rejected the last drawn value, or the exception for failing tests.
Test cases which exceeded the maximum allowed size now also report a
nonempty "status_reason".
The canonical version of these notes (with links) is on readthedocs.
v6.166.0: Hypothesis version 6.166.0Compare Source
The "Phase.explain" phase now also varies interactive draws from
"data()", annotating each freely-variable "Draw n: ..." line with an
"# or any other generated value" comment, just like "@given" arguments
(issue #4403).
This release also fixes two explain-phase bugs: failing test cases
found just as the set of possible inputs was fully enumerated were
reported without running the "Phase.shrink" and "Phase.explain"
phases, and the explain phase could fail to report that the commented
parts can be varied together if the failing example ended with an
uncommented part.
The canonical version of these notes (with links) is on readthedocs.
v6.165.11: Hypothesis version 6.165.11Compare Source
This patch fixes the "redistribute_numeric_pairs" shrink pass, which
incorrectly checked "node1.type" instead of "node2.type" when guarding
against float precision loss above "MAX_PRECISE_INTEGER".
The canonical version of these notes (with links) is on readthedocs.
v6.165.10: Hypothesis version 6.165.10Compare Source
This patch fixes several "from_regex()" bugs (issue #4857, issue
#4858, and issue #4859):
Character classes which combine a negative category with other
members, like "[\W_]", now match the union of their members instead
of incorrectly excluding characters.
Patterns compiled with the "re.ASCII" flag are now handled
correctly: inverted categories such as "\D" match the complement of
their ascii counterpart, including non-ascii characters; explicit
characters and ranges in character classes are not restricted to
ascii; and only ascii characters casefold under "re.IGNORECASE".
Subpatterns which cannot be generated from the "alphabet", but may
be repeated zero times - like "b*" in "st.from_regex(r"ab",
alphabet="a")" - no longer raise an error.
The canonical version of these notes (with links) is on readthedocs.
v6.165.9: Hypothesis version 6.165.9Compare Source
This patch improves the performance of "one_of()" when it can be
simplified to a single real strategy, for example "st.integers() |
st.nothing()".
The canonical version of these notes (with links) is on readthedocs.
v6.165.8: Hypothesis version 6.165.8Compare Source
This patch provides a better error message for some "from_regex()"
cases where the passed pattern and alphabet were incompatible, as in
"st.from_regex(r"\d", alphabet="abc")".
Thanks to Dmitry Dygalo for this fix!
The canonical version of these notes (with links) is on readthedocs.
v6.165.7: Hypothesis version 6.165.7Compare Source
This release adds support for Python 3.15. "from_type()" can now
resolve the new "sentinel" builtin.
The canonical version of these notes (with links) is on readthedocs.
v6.165.6: Hypothesis version 6.165.6Compare Source
We now publish abi3 wheels for Windows arm64 and Linux ppc64le
(manylinux + musllinux; issue #4852).
The canonical version of these notes (with links) is on readthedocs.
v6.165.5: Hypothesis version 6.165.5Compare Source
This release continues the terminology change in version 6.159.0,
updating more internal wording and names from "example" to "test
case".
The canonical version of these notes (with links) is on readthedocs.
v6.165.4: Hypothesis version 6.165.4Compare Source
This release improves our heuristic for when to run the "Phase.target"
phase, which optimises scores from "hypothesis.target()". Behaviour is
unchanged for "max_examples" below 1000. For larger budgets we now
start optimising much earlier, and alternate between generation and
optimisation for as long as scores keep improving, instead of running
a single optimisation pass halfway through the run. Exploratory
searches using "target()" with a large budget should now make much
better use of it (issue #3176).
The canonical version of these notes (with links) is on readthedocs.
v6.165.3: Hypothesis version 6.165.3Compare Source
This patch fixes "BytestringProvider.draw_float" so that it can
generate negative floats. Previously, only 64 bits were drawn for a
65-bit float index format, so the sign bit was always zero and
negative floats could never be produced.
The canonical version of these notes (with links) is on readthedocs.
v6.165.2: Hypothesis version 6.165.2Compare Source
This release extends a recent shrinking improvement to many more
strategies. In unions like "wide_strategy | specific_strategy", values
produced by the specific branch can now be re-encoded and shrunk as if
generated by the wider branch when the strategies involved include
"sampled_from()", "lists()", "tuples()", "dictionaries()" and
"fixed_dictionaries()", "builds()" of a dataclass, "permutations()",
the "dates()" family of strategies, and filtered, deferred, or
recursive combinations of them.
The canonical version of these notes (with links) is on readthedocs.
v6.165.1Compare Source
v6.165.0: Hypothesis version 6.165.0Compare Source
"characters()" now issues the new "NonRoundTrippableCharactersWarning"
if the "codec" argument allows generating characters which encode
successfully but do not decode back to the same character - for
example the yen sign becomes a backslash under "shift_jis" - since
strings containing them do not round-trip (issue #4813). Pass each
such character in "include_characters" to generate it without the
warning, or in "exclude_characters" to generate only characters which
round-trip.
The canonical version of these notes (with links) is on readthedocs.
v6.164.0: Hypothesis version 6.164.0Compare Source
"functions()" now generates functions of the same kind as the "like="
argument, so that async functions, generator functions, and async
generator functions can be imitated as well as plain functions (issue
#4149). "pure=True" is only supported for plain functions.
Generated generator functions yield a list of values drawn from
"returns", inferring e.g. "returns=integers()" from an "Iterator[int]"
or "AsyncIterator[int]" return-type annotation, and generated async
functions follow Trio-style checkpoint semantics.
The canonical version of these notes (with links) is on readthedocs.
v6.163.1: Hypothesis version 6.163.1Compare Source
Now that we combine coverage data across our CI jobs (issue #4261),
this patch removes around a hundred "# pragma: no cover" comments
which are no longer needed, and expands our 100%-coverage requirement
to several previously-omitted files.
The "explain" phase no longer reports lines inside the standard
library, which were occasionally included in (and made for misleading)
explanations.
The constants-collection feature introduced in version 6.131.1 now
also collects the float components of complex literals like "3.5j".
The canonical version of these notes (with links) is on readthedocs.
v6.163.0: Hypothesis version 6.163.0Compare Source
The "alphabet=" argument of "from_regex()" now accepts any collection
of length-one strings, such as a tuple or list of characters (issue
#4829). This matches the existing behavior of "text()".
The canonical version of these notes (with links) is on readthedocs.
v6.162.0: Hypothesis version 6.162.0Compare Source
This release adds support for generating timezone-aware datetimes in
hypothesis.extra.pandas. You can now pass a "DatetimeTZDtype" - such
as ""datetime64[ns, UTC]"" - as the "dtype" of a "series()",
"indexes()", or "column()", and every value will share that single
timezone. The datetime resolution is taken from the dtype, so you can
also generate e.g. ""datetime64[us, UTC]"" columns, and for UTC and
other fixed-offset timezones the generated values cover the full range
representable at that resolution - which for coarser units is far
wider than the "datetime64[ns]" bounds of roughly 1677-2262 (issue
#4020).
Timezone-aware generation requires pandas >= 2.1. Generated values
include "NaT" unless you pass an elements strategy which excludes it.
The canonical version of these notes (with links) is on readthedocs.
v6.161.8: Hypothesis version 6.161.8Compare Source
This patch removes a redundant "# pragma: no cover" comment. There is
no user-visible change.
The canonical version of these notes (with links) is on readthedocs.
v6.161.7: Hypothesis version 6.161.7Compare Source
This patch updates our vendored list of top-level domains, which is
used by the provisional "domains()" strategy.
The canonical version of these notes (with links) is on readthedocs.
v6.161.6: Hypothesis version 6.161.6Compare Source
This patch improves the display of functions generated by
"functions()". If the "returns=" strategy can only produce a single
value, the function is now shown as a constant lambda such as
"f=lambda x: 3", instead of noting each call to it separately.
We also respect the "repr_pretty()" method of objects which define
one in a few more places, such as the arguments of a failing example.
The canonical version of these notes (with links) is on readthedocs.
v6.161.5: Hypothesis version 6.161.5Compare Source
This patch fixes a bug where a lambda could be displayed with the
definition of an unrelated lambda which happened to take the same
arguments - for example a function generated by "functions()" when
shown in a failing example.
The canonical version of these notes (with links) is on readthedocs.
v6.161.4: Hypothesis version 6.161.4Compare Source
We now publish abi3 wheels for Linux armv7l, for both manylinux and
musllinux (issue #4818).
The canonical version of these notes (with links) is on readthedocs.
v6.161.3: Hypothesis version 6.161.3Compare Source
This patch improves our internal "@proxies" decorator, which now
preserves the kind of the decorated function: proxies for async
functions, generator functions, and async generator functions are
themselves functions of the same kind. This prepares for upcoming
"functions()" support (issue #4149).
The canonical version of these notes (with links) is on readthedocs.
v6.161.2: Hypothesis version 6.161.2Compare Source
We now publish abi3 wheels for Linux riscv64, for both manylinux and
musllinux (issue #4815).
The canonical version of these notes (with links) is on readthedocs.
v6.161.1: Hypothesis version 6.161.1Compare Source
"from_lark()" could generate strings which the grammar's lexer
tokenizes differently than the terminal they were generated for, and
which therefore fail to parse - for example "'"""'" for Lark's built-
in "ESCAPED_STRING" terminal (issue #4325). Terminal strategies now
only generate strings which the lexer would match in their entirety.
The canonical version of these notes (with links) is on readthedocs.
v6.161.0: Hypothesis version 6.161.0Compare Source
Values recorded with "note()" are now included in observability
reports, as an ordered list of strings under the "metadata.notes" key
of each test-case observation. Previously, notes were only shown in
the terminal for the minimal failing test case (or for every test
case under "Verbosity.verbose"), and never appeared in observations at
all.
The canonical version of these notes (with links) is on readthedocs.
v6.160.0: Hypothesis version 6.160.0Compare Source
"Bundle" now supports efficient ".filter()" and ".map()" methods,
which compose with "consumes()" in either order (issue #3944).
Previously, "consumes(bundle).filter(fn)" could remove rejected values
from the bundle while retrying, and "consumes(bundle.filter(fn))" was
a type error; filtered draws now select among currently-matching
values and consume only the value which was actually drawn.
Thanks to Reagan Lee for the initial implementation of this feature in
pull request #4084!
The canonical version of these notes (with links) is on readthedocs.
v6.159.0: Hypothesis version 6.159.0Compare Source
Hypothesis has historically referred to the single execution of a test
function as an "example". However, we have in recent years tended to
call a single execution a "test case" instead, which we think is a
more precise and less overloaded term.
This release updates user-facing documentation, log messages, and
error messages to use the "test case" terminology. Some observability
fields which contain raw strings from Hypothesis might change in
format as a result.
This is not a breaking change, as we have intentionally not changed
any code APIs. In particular, "settings.max_examples" has not been
changed.
The canonical version of these notes (with links) is on readthedocs.
v6.158.1: Hypothesis version 6.158.1Compare Source
This patch implements filter-rewriting for "times()" and
"datetimes()": simple comparison filters such as
".filter(partial(operator.ge, bound))" are rewritten into efficient
bounds, as "dates()" already did. This includes strategies inferred
from annotated-types bounds like "Annotated[datetime, Gt(...)]", and
contradictory filters now give an empty strategy instead of failing
health checks.
The canonical version of these notes (with links) is on readthedocs.
v6.158.0: Hypothesis version 6.158.0Compare Source
"datetimes()" now accepts timezone-aware "min_value" and "max_value"
bounds, which are treated as moments in time. In this case "timezones"
defaults to "timezones()", and each generated datetime lies between
the two moments. Passing one aware and one naive bound is an error.
If annotated-types has been imported, the overloaded typ
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.