Skip to content

Update hypothesis to 6.127.1#62

Closed
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-hypothesis-6.125.2-to-6.127.1
Closed

Update hypothesis to 6.127.1#62
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-hypothesis-6.125.2-to-6.127.1

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates hypothesis from 6.125.2 to 6.127.1.

Changelog

6.127.1

--------------------

Improve the clarity of printing counterexamples in :doc:`stateful testing <stateful>`, by avoiding confusing :class:`~hypothesis.stateful.Bundle` references with equivalent values drawn from a regular strategy.

For example, we now print:

.. code-block: python

a_0 = state.add_to_bundle(a=0)
state.unrelated(value=0)

instead of

.. code-block: python

a_0 = state.add_to_bundle(a=0)
state.unrelated(value=a_0)

if the ``unrelated`` rule draws from a regular strategy such as :func:`~hypothesis.strategies.integers` instead of the ``a`` bundle.

6.127.0

--------------------

This releases adds support for type aliases created with the :py:keyword:`type` statement (new in python 3.12) to :func:`~hypothesis.strategies.from_type` and :func:`~hypothesis.strategies.register_type_strategy`.

6.126.0

--------------------

The :doc:`Hypothesis database <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.

This feature is currently only used downstream in `hypofuzz <https://github.com/zac-hd/hypofuzz>`_.

6.125.3

--------------------

Improves sharing of some internal cache behavior.
Links

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #64

@pyup-bot pyup-bot closed this Feb 25, 2025
@asmfreak asmfreak deleted the pyup-update-hypothesis-6.125.2-to-6.127.1 branch February 25, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant