summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-mock_4.0.2.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-mock: Upgrade 4.0.2 -> 4.0.3Leon Anavi2021-01-121-17/+0
| | | | | | | | | | | | | | | | | | | | Upgrade to release 4.0.3: - Remove unexpected call of __bool__ when passing a spec_arg argument to a Mock. - Revert bpo-25597. unittest.mock.MagicMock with wraps’ set uses default return values for magic methods. - 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. - 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. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-mock: Upgrade 4.0.1 -> 4.0.2Leon Anavi2020-07-231-0/+17
Upgrade 4.0.2: - Issue #39915: Ensure unittest.mock.AsyncMock.await_args_list has call objects in the order of awaited arguments instead of using unittest.mock.Mock.call_args which has the last value of the call. Patch by Karthikeyan Singaravelan. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>