Path to this page:
./
devel/py-hypothesis,
Python library for property based testing
Branch: CURRENT,
Version: 6.129.0,
Package name: py312-hypothesis-6.129.0,
Maintainer: pkgsrc-usersHypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by hand.
It's based on the Haskell library, Quickcheck, and is designed to
integrate seamlessly into your existing Python unit testing work
flow.
Hypothesis is both extremely practical and also advances the state
of the art of unit testing by some way. It's easy to use, stable,
and extremely powerful. If you're not using Hypothesis to test your
project then you're missing out.
Required to run:[
devel/py-setuptools] [
devel/py-attrs] [
devel/py-sortedcontainers] [
lang/python37]
Required to build:[
pkgtools/cwrappers]
Master sites:
Filesize: 413.953 KB
Version history: (Expand)
- (2025-03-13) Updated to version: py312-hypothesis-6.129.0
- (2025-03-04) Updated to version: py312-hypothesis-6.127.6
- (2025-02-19) Updated to version: py312-hypothesis-6.126.0
- (2025-02-07) Updated to version: py312-hypothesis-6.125.2
- (2025-01-26) Updated to version: py312-hypothesis-6.124.7
- (2025-01-14) Updated to version: py312-hypothesis-6.123.17
CVS history: (Expand)
2025-03-13 10:03:45 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.129.0
6.129.0
This release adds a "hypothesis-urandom" backend, which draws \
randomness from /dev/urandom instead of Python’s PRNG. This is useful for \
users of Antithesis who also have Hypothesis tests, allowing Antithesis mutation \
of /dev/urandom to drive Hypothesis generation. We expect it to be strictly \
slower than the default backend for everyone else.
It can be enabled with @settings(backend="hypothesis-urandom").
|
2025-03-04 06:16:14 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.127.6
6.127.6
This patch tweaks the performance of the target phase, avoiding aborting some \
test cases when it would be better to finish generating them.
6.127.5
This patch fixes a bug where from_type() would error on certain types involving \
Protocol.
6.127.4
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.127.3
Improve shrinking of non-standard NaN float values.
6.127.2
Adjust type hints for the pub-sub database implementation in version 6.126.0, \
and remove a remnant debug print in its implementation.
6.127.1
Improve the clarity of printing counterexamples in stateful testing, by avoiding \
confusing Bundle references with equivalent values drawn from a regular \
strategy.
|
2025-02-19 10:24:20 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.126.0
6.126.0 - 2025-02-18
The Hypothesis database now supports a pub-sub interface to efficiently listen
for changes in the database, via .add_listener and .remove_listener. While all
databases that ship with Hypothesis support this interface, implementing it is
not required for custom database subclasses. Hypothesis will warn when trying
to listen on a database without support.
|
2025-02-07 08:51:56 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.125.2
6.125.2
Optimize performance (improves speed by ~5%) and clarify the wording in an error \
message.
6.125.1
Fixes a bug since around version 6.124.4 where we might have generated -0.0 for \
st.floats(min_value=0.0), which is unsound.
6.125.0
Add 2024.12 to the list of recognized Array API versions in \
hypothesis.extra.array_api.
|
2025-01-26 12:42:19 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-hypothesis: updated to 6.124.7
6.124.7
Internal renamings.
6.124.6
More work on internal type hints.
6.124.5
Internal refactoring to make some stateful internals easier to access.
6.124.4
Refactoring of our internal input generation. This shouldn’t lead to any \
changes in the distribution of test inputs. If you notice any, please open an \
issue!
6.124.3
Some Hypothesis internals now use the number of choices as a yardstick of input \
size, rather than the entropy consumed by those choices. We don’t expect this \
to cause significant behavioral changes.
6.124.2
Improves our internal caching logic for test cases.
6.124.1
fuzz_one_input is now implemented using an alternative backend. This brings the \
interpretation of the fuzzer-provided bytestring closer to the fuzzer mutations, \
allowing the mutations to work more reliably. We hope to use this backend \
functionality to improve fuzzing integration (see e.g. \
https://github.com/google/atheris/issues/20) in the future!
6.124.0
The Hypothesis example database now uses a new internal format to store \
examples. This new format is not compatible with the previous format, so stored \
entries will not carry over.
The database is best thought of as a cache that may be invalidated at times. \
Instead of relying on it for correctness, we recommend using @example to specify \
explicit examples. When using databases across environments (such as connecting \
a GitHubArtifactDatabase database in CI to your local environment), we recommend \
using the same version of Hypothesis for each where possible, for maximum \
reproducibility.
|
2025-01-14 07:45:25 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.123.17
6.123.16
Improves an edge case in one of our integer and float shrinking passes.
6.123.15
Improves one of our shrinking passes for integers which require a constant \
relative difference to trigger the bug.
6.123.14
Avoid realizing symbolic values from Alternative backends for Hypothesis when \
verbosity is verbose or higher.
6.123.13
More internal code refactoring.
6.123.12
DirectoryBasedExampleDatabase now creates files representing database entries \
atomically, avoiding a very brief intermediary state where a file could be \
created but not yet written to.
6.123.11
Internal code refactoring.
6.123.10
Fixes a bug caused by alternative backends raising \
hypothesis.errors.BackendCannotProceed in certain cases.
6.123.9
Add internal type hints to our pretty printer.
6.123.8
The shrinker contains a pass aimed at integers which are required to sum to a \
value. This patch extends that pass to floats as well.
6.123.7
Internal type hint additions and refactorings.
6.123.6
@reproduce_failure() now uses a newer internal interface to represent failures. \
As a reminder, this representation is not intended to be stable across versions \
or with respect to changes in the test.
6.123.5
Internal code refactoring for the typed choice sequence. May have some neutral \
effect on shrinking.
6.123.4
This patch improves shrinking involving long strings or byte sequences whose \
value is not relevant to the failure.
6.123.3
This release further improves shrinking of strategies using one_of(), allowing \
the shrinker to more reliably move between branches of the strategy.
|
2024-12-29 10:12:05 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-hypothesis: updated to 6.123.2
6.123.2 - 2024-12-27
The shrinker now uses the typed choice sequence when ordering failing examples. \
As a result, Hypothesis may now report a different minimal failing example for \
some tests. We expect most cases to remain unchanged.
6.123.1 - 2024-12-24
Our pytest plugin now emits a warning if you set Pytest’s norecursedirs config \
option in such a way that the .hypothesis directory would be searched for tests. \
This reliably indicates that you’ve made a mistake which slows down test \
collection, usually assuming that your configuration extends the set of ignored \
patterns when it actually replaces them.
6.123.0 - 2024-12-23
from_type() can now handle constructors with required positional-only arguments \
if they have type annotations. Previously, we only passed arguments by keyword.
6.122.7 - 2024-12-23
This patch lays some groundwork for migrating our internal representation to the \
typed choice sequence
6.122.6 - 2024-12-21
This patch cleans up some internal code around clamping floats.
6.122.5 - 2024-12-20
This release improves shrinking in some cases, especially for strategies using \
one_of(). This will typically improve shrinking speed and may in some cases \
improve the end result.
6.122.4 - 2024-12-19
This patch improves generation performance for the provisional domains() \
strategy, including its derivative strategies urls() and emails().
|
2024-12-16 06:53:02 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-hypothesis: updated to 6.122.3
6.122.3
This patch improves our error and warning messages.
Add a warning for st.text("ascii") - you probably meant \
st.text(st.characters(codec="ascii")). Similarly for \
"utf-8".
Recommend remedies in the error message of Unsatisfiable.
When @given errors because it was given an extra keyword argument, and the \
keyword matches a setting name like max_examples, recommend \
@settings(max_examples=...) instead.
6.122.2
This patch updates some outdated external links in our documentation.
6.122.1
Fix from_type() on collections.abc.Callable returning None.
6.122.0
This release adds .span_start() and .span_end() methods to our internal \
PrimitiveProvider interface, for use by Alternative backends for Hypothesis.
|