summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-mock_5.0.1.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-mock: upgrade 5.0.1 -> 5.0.2Wang Mingyu2023-04-231-16/+0
| | | | | | | | | | Changelog: ========== gh-102978: Fixes :func:'unittest.mock.patch' not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True. gh-103329: Regression tests for the behaviour of unittest.mock.PropertyMock were added. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-mock: upgrade 5.0.0 -> 5.0.1Wang Mingyu2023-01-171-0/+16
Changelog: ========== - gh-100740: Fix unittest.mock.Mock not respecting the spec for attribute names prefixed with assert. - gh-100690: Mock objects which are not unsafe will now raise an AttributeError when accessing an attribute that matches the name of an assertion but without the prefix assert_, e.g. accessing called_once instead of assert_called_once. This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt. - gh-96127: inspect.signature was raising TypeError on call with mock objects. Now it correctly returns (*args, **kwargs) as infered signature. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>