Releases: HypothesisWorks/hypothesis
Hypothesis for Python - version 6.148.7
When multiple explicit "@example" decorators fail with the same error,
Hypothesis now shows only the simplest failing example (by shortlex
order) with a note about how many other examples also failed (issue
#4520).
To see all failing examples, use "Verbosity.verbose" or higher.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.6
Fix a bug where we persisted symbolics from solver-based alternative
backends in "event()".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.5
This patch improves the error message for "FlakyStrategyDefinition"
when the precondition for a rule is flaky (issue #4206).
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.4
This patch improves the type annotations for "basic_indices()". The
return type now accurately reflects the "allow_ellipsis" and
"allow_newaxis" parameters, excluding "EllipsisType" or "None" from
the union when those index types are disabled (issue #4607).
Additionally, "assume()" now has overloaded type annotations:
"assume(True)" returns "Literal[True]", while "assume(False)" and
"assume(None)" return "NoReturn".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.3
Clean up some internal code.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.2
Document "fuzz_one_input()".
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.148.1
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.
Hypothesis for Python - version 6.148.0
Calling "register_profile()" from within a test decorated with
"@settings" is now deprecated, to avoid confusion about which settings
are used as the baseline for the new profile.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.147.0
This release drops support for nose, which ceased development 9 years
ago and does not support Python 3.10 or newer.
Hypothesis still supports nose2. While we do not test "nose2" in our
CI, we will fix any bugs that get reported.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.146.0
"@settings" now accepts equivalent string representations for
"settings.verbosity", "settings.phases", and
"settings.suppress_health_check". For example:
these two are now equivalent...
settings(verbosity=Verbosity.verbose)
settings(verbosity="verbose")
...as are these two...
settings(phases=[Phase.explicit])
settings(phases=["explicit"])
...and these two.
settings(suppress_health_check=[HealthCheck.filter_too_much])
settings(suppress_health_check=["filter_too_much"])
This release also changes the canonical value of "Verbosity", "Phase",
and "HealthCheck" members to a string instead of an integer. For
example, "Phase.reuse.value == "explicit"" as of this release, where
previously "Phase.reuse.value == 1".
Instantiating "Verbosity", "Phase", or "HealthCheck" with an integer,
such as "Verbosity(0)", is now deprecated.
The canonical version of these notes (with links) is on readthedocs.