Repository navigation
deps: Update dependency hypothesis to >=6.170.12 - #1097
Merged
Merged
Conversation
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.
This PR contains the following updates:
>=6.168.1→>=6.170.126.170.15(+2)>=6.168.1→>=6.170.126.170.15(+2)Release Notes
HypothesisWorks/hypothesis (hypothesis)
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.10This 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.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.4This 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.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.3The ".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.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.
Configuration
📅 Schedule: (UTC)
* * 10 * *)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.