summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-mock_5.0.2.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-mock: upgrade 5.0.2 -> 5.1.0Wang Mingyu2023-07-201-19/+0
| | | | | | | | | | | | | | | Changelog: =========== -bpo-44185: :func:'unittest.mock.mock_open' will call the :func:'close' method of the file handle mock when it is exiting from the context manager. -gh-94924: :func:'unittest.mock.create_autospec' now properly returns coroutine functions compatible with :func:'inspect.iscoroutinefunction' -bpo-17013: Add ThreadingMock to :mod:'unittest.mock' that can be used to create Mock objects that can wait until they are called. -bpo-41768: :mod:'unittest.mock' speccing no longer calls class properties. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-mock: add missing run-time dependenciesBartosz Golaszewski2023-06-061-0/+1
| | | | | | | Add missing RDEPENDS for this package. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-mock: cleanup RDEPENDSBartosz Golaszewski2023-06-061-6/+8
| | | | | | | | Drop PYTHON_PN, improve coding-style and order the dependencies alphabetically. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-mock: upgrade 5.0.1 -> 5.0.2Wang Mingyu2023-04-231-0/+16
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>