From 7b86dc79c0f43025104a619af937ddf7133a298b Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 17 Jan 2023 15:24:20 +0800 Subject: python3-mock: upgrade 5.0.0 -> 5.0.1 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 Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-mock_5.0.0.bb | 16 ---------------- .../recipes-devtools/python/python3-mock_5.0.1.bb | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mock_5.0.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-mock_5.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-mock_5.0.0.bb b/meta-python/recipes-devtools/python/python3-mock_5.0.0.bb deleted file mode 100644 index dcc57c22b4..0000000000 --- a/meta-python/recipes-devtools/python/python3-mock_5.0.0.bb +++ /dev/null @@ -1,16 +0,0 @@ -DESCRIPTION = "A Python Mocking and Patching Library for Testing" -HOMEPAGE = "https://pypi.python.org/pypi/mock" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=de9dfbf780446b18aab11f00baaf5b7e" - -inherit pypi setuptools3 - -RDEPENDS:${PN} += "${PYTHON_PN}-prettytable \ - ${PYTHON_PN}-cmd2 \ - ${PYTHON_PN}-pyparsing \ - ${PYTHON_PN}-mccabe \ - ${PYTHON_PN}-pep8 \ - ${PYTHON_PN}-pyflakes" - -SRC_URI[sha256sum] = "fd552787228eb2ab8352f270470fa93c9ad8b9cbc565c5558ee3faed8edb3853" diff --git a/meta-python/recipes-devtools/python/python3-mock_5.0.1.bb b/meta-python/recipes-devtools/python/python3-mock_5.0.1.bb new file mode 100644 index 0000000000..b916a7b4e7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-mock_5.0.1.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "A Python Mocking and Patching Library for Testing" +HOMEPAGE = "https://pypi.python.org/pypi/mock" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=de9dfbf780446b18aab11f00baaf5b7e" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "${PYTHON_PN}-prettytable \ + ${PYTHON_PN}-cmd2 \ + ${PYTHON_PN}-pyparsing \ + ${PYTHON_PN}-mccabe \ + ${PYTHON_PN}-pep8 \ + ${PYTHON_PN}-pyflakes" + +SRC_URI[sha256sum] = "e3ea505c03babf7977fd21674a69ad328053d414f05e6433c30d8fa14a534a6b" -- cgit v1.2.3-54-g00ecf