Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest-mock to 1.13.0 #164

wants to merge 2 commits into from


Copy link

pyup-bot commented Dec 6, 2019

This PR updates pytest-mock from 1.10.0 to 1.13.0.




* The object returned by ``mocker.spy`` now also tracks any side effect
of the spied method/function.



* Fix error if ``mocker.patch`` is used in code where the source file
is not available, for example stale ``.pyc`` files (`169`_).

.. _169:



* Now all patch functions also raise a ``ValueError`` when used
as a context-manager. Thanks `AlexGascon`_ for the PR (`168`_).

.. _AlexGascon:
.. _168:



* The *pytest introspection follows* message is no longer shown
if there is no pytest introspection (`154`_).
Thanks `The-Compiler`_ for the report.

* ``mocker`` now raises a ``ValueError`` when used as a context-manager.
Thanks `binarymason`_ for the PR (`165`_).

.. _154:
.. _165:
.. _binarymason:



* Fix ``mocker.spy`` on Python 2 when used on non-function objects
which implement ``__call__`` (`157`_). Thanks `pbasista`_  for
the report.

.. _157:
.. _pbasista:



* The object returned by ``mocker.spy`` now also tracks the return value
of the spied method/function.



* Fix plugin when 'terminal' plugin is disabled



* Fix test suite in Python 3.8. Thanks `hroncok`_ for the report and `blueyed`_ for the PR (`140`_).

.. _140:
.. _hroncok:



* Fix bug at the end of the test session when a call to ``patch.stopall`` is done explicitly by
user code. Thanks `craiga`_ for the report (`137`_).

.. _137:
.. _craiga:



* Fix broken links and update README. Also the code is now formatted using `black <>`__.

This comment has been minimized.

Copy link
Collaborator Author

pyup-bot commented Jan 5, 2020

Closing this in favor of #171

@pyup-bot pyup-bot closed this Jan 5, 2020
@tadgh tadgh deleted the pyup-update-pytest-mock-1.10.0-to-1.13.0 branch Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.