diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2025-03-05 15:34:11 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-03-06 06:58:00 -0800 |
commit | 33de56236fa0e0a0d1bf620758cae310f4750368 (patch) | |
tree | 3340b2652f2a2a6816dd7f422b33afc8cf94538a /meta-python | |
parent | 4cf1f81fa14d1ef876e9688ad8c29ba15ccbee8b (diff) | |
download | meta-openembedded-33de56236fa0e0a0d1bf620758cae310f4750368.tar.gz |
python3-mock: Upgrade 5.1.0 -> 5.2.0
Upgrade to release 5.2.0:
- :func:`unittest.mock.Mock.attach_mock` no longer triggers a call
to a PropertyMock being attached.
- Improved documentation for :func:`unittest.mock.patch.dict`
- Add support for :func:`dataclasses.dataclass` in
:func:`unittest.mock.create_autospec`. Now create_autospec will
check for potential dataclasses and use :func:`dataclasses.fields`
function to retrieve the spec information.
- Fix :class:`unittest.mock.MagicMock` reseting magic methods
return values after .reset_mock(return_value=True) was called.
- Fixed :func:`unittest.mock.create_autospec` to configure parent
mock with keyword arguments.
- Indicate if there were no actual calls in unittest
:meth:`~unittest.mock.Mock.assert_has_calls` failure.
- Deprecate :func:`!asyncio.iscoroutinefunction` in favor of
:func:`inspect.iscoroutinefunction`.
- Limit starting a patcher (from :func:`unittest.mock.patch` or
:func:`unittest.mock.patch.object`) more than once without
stopping it
- Fixed :func:`unittest.mock.create_autospec` to pass the call
through to the wrapped object to return the real result.
- Fix :func:`unittest.mock.patch` to not read attributes of the
target when new_callable is set. Patch by Robert Collins.
- Fix import of :mod:`unittest.mock` when CPython is built without
docstrings.
- Fix name passing to :class:`unittest.mock.Mock` object when using
:func:`unittest.mock.create_autospec`.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-mock_5.2.0.bb (renamed from meta-python/recipes-devtools/python/python3-mock_5.1.0.bb) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-mock_5.1.0.bb b/meta-python/recipes-devtools/python/python3-mock_5.2.0.bb index 1b89260e1b..0861518d4b 100644 --- a/meta-python/recipes-devtools/python/python3-mock_5.1.0.bb +++ b/meta-python/recipes-devtools/python/python3-mock_5.2.0.bb | |||
@@ -16,4 +16,4 @@ RDEPENDS:${PN} += " \ | |||
16 | python3-unittest \ | 16 | python3-unittest \ |
17 | " | 17 | " |
18 | 18 | ||
19 | SRC_URI[sha256sum] = "5e96aad5ccda4718e0a229ed94b2024df75cc2d55575ba5762d31f5767b8767d" | 19 | SRC_URI[sha256sum] = "4e460e818629b4b173f32d08bf30d3af8123afbb8e04bb5707a1fd4799e503f0" |