Skip to content

Update pytest-mock to 3.5.1#66

Closed
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-pytest-mock-3.4.0-to-3.5.1
Closed

Update pytest-mock to 3.5.1#66
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-pytest-mock-3.4.0-to-3.5.1

Conversation

@pyup-bot
Copy link
Copy Markdown
Collaborator

This PR updates pytest-mock from 3.4.0 to 3.5.1.

Changelog

3.5.1

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

* Use ``inspect.getattr_static`` instead of resorting to ``object.__getattribute__``
magic. This should better comply with objects which implement a custom descriptor
protocol. Thanks `yesthesoup`_ for the PR (`224`_).

.. _yesthesoup: https://github.com/yesthesoup
.. _224: https://github.com/pytest-dev/pytest-mock/pull/224

3.5.0

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

* Now all patch functions will emit a warning instead of raising a ``ValueError`` when used
as a context-manager. Thanks `iforapsy`_ for the PR (`221`_).

* Additionally, ``mocker.patch.context_manager`` is available when the user intends to mock
a context manager (for example  ``threading.Lock`` object), which will not emit that
warning.

.. _iforapsy: https://github.com/iforapsy
.. _221: https://github.com/pytest-dev/pytest-mock/pull/221
Links

@pyup-bot
Copy link
Copy Markdown
Collaborator Author

Closing this in favor of #84

@pyup-bot pyup-bot closed this Apr 25, 2021
@limberger limberger deleted the pyup-update-pytest-mock-3.4.0-to-3.5.1 branch April 25, 2021 00:31
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