Skip to content

Update mock to 4.0.3#180

Merged
bors[bot] merged 2 commits intomasterfrom
pyup-update-mock-4.0.2-to-4.0.3
Dec 29, 2020
Merged

Update mock to 4.0.3#180
bors[bot] merged 2 commits intomasterfrom
pyup-update-mock-4.0.2-to-4.0.3

Conversation

@pyup-bot
Copy link
Copy Markdown
Collaborator

This PR updates mock from 4.0.2 to 4.0.3.

Changelog

4.0.3

-----

- Issue 42532: Remove unexpected call of ``__bool__`` when passing a
``spec_arg`` argument to a Mock.

- Issue 39966: Revert bpo-25597. :class:`unittest.mock.MagicMock` with
wraps' set uses default return values for magic methods.

- Issue 41877: Mock objects which are not unsafe will now raise an
AttributeError if an attribute with the prefix asert, aseert, or assrt is
accessed, in addition to this already happening for the prefixes assert or
assret.

- Issue 40126: Fixed reverting multiple patches in unittest.mock. Patcher's
``__exit__()`` is now never called if its ``__enter__()`` is failed.
Returning true from ``__exit__()`` silences now the exception.
Links

@aragilar
Copy link
Copy Markdown
Member

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Dec 22, 2020

Merge conflict.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 29, 2020

Codecov Report

Merging #180 (c09d801) into master (cbaec23) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #180   +/-   ##
=======================================
  Coverage   26.30%   26.30%           
=======================================
  Files          15       15           
  Lines        4409     4409           
=======================================
  Hits         1160     1160           
  Misses       3249     3249           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbaec23...c09d801. Read the comment docs.

@YourLocalBlake
Copy link
Copy Markdown
Member

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Dec 29, 2020

Build succeeded:

@bors bors Bot merged commit cf46cd3 into master Dec 29, 2020
@YourLocalBlake YourLocalBlake deleted the pyup-update-mock-4.0.2-to-4.0.3 branch December 29, 2020 01:34
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.

3 participants