Skip to content

[3.8] bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)#19483

Merged
serhiy-storchaka merged 1 commit intopython:3.8from
serhiy-storchaka:backport-4b222c9-3.8
Apr 12, 2020
Merged

[3.8] bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)#19483
serhiy-storchaka merged 1 commit intopython:3.8from
serhiy-storchaka:backport-4b222c9-3.8

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 12, 2020

Patcher's __exit__() is now never called if its __enter__() is failed.
Returning true from __exit__() silences now the exception.
(cherry picked from commit 4b222c9)

https://bugs.python.org/issue40126

…thonGH-19351)

Patcher's __exit__() is now never called if its __enter__() is failed.
Returning true from __exit__() silences now the exception..
(cherry picked from commit 4b222c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants