diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2023-01-17 15:24:20 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-17 01:05:53 -0800 |
| commit | 7b86dc79c0f43025104a619af937ddf7133a298b (patch) | |
| tree | 589899d082227ef5ec00bf64d08340c1aa511f42 /meta-python/recipes-devtools/python/python3-mock_5.0.1.bb | |
| parent | fd3c0d2fb503c57ee04e7dc2bf5348c9a8b1b278 (diff) | |
| download | meta-openembedded-7b86dc79c0f43025104a619af937ddf7133a298b.tar.gz | |
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 <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-mock_5.0.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-mock_5.0.1.bb | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
| 1 | DESCRIPTION = "A Python Mocking and Patching Library for Testing" | ||
| 2 | HOMEPAGE = "https://pypi.python.org/pypi/mock" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "Apache-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=de9dfbf780446b18aab11f00baaf5b7e" | ||
| 6 | |||
| 7 | inherit pypi setuptools3 | ||
| 8 | |||
| 9 | RDEPENDS:${PN} += "${PYTHON_PN}-prettytable \ | ||
| 10 | ${PYTHON_PN}-cmd2 \ | ||
| 11 | ${PYTHON_PN}-pyparsing \ | ||
| 12 | ${PYTHON_PN}-mccabe \ | ||
| 13 | ${PYTHON_PN}-pep8 \ | ||
| 14 | ${PYTHON_PN}-pyflakes" | ||
| 15 | |||
| 16 | SRC_URI[sha256sum] = "e3ea505c03babf7977fd21674a69ad328053d414f05e6433c30d8fa14a534a6b" | ||
