Files
meta-openembedded/meta-python
Leon Anavi 33de56236f 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>
2025-03-06 06:58:00 -08:00
..

meta-python

Introduction

This layer is intended to be the home of python modules for OpenEmbedded.

Dependencies

The meta-python layer depends on:

URI: git://git.openembedded.org/openembedded-core
layers: meta
branch: master

URI: git://git.openembedded.org/meta-openembedded
layers: meta-oe
branch: master

Contributing

The meta-openembedded mailinglist (openembedded-devel@lists.openembedded.org) is used for questions, comments and patch review. It is subscriber only, so please register before posting.

Send pull requests to openembedded-devel@lists.openembedded.org with '[meta-python]' in the subject.

When sending single patches, please use something like: git send-email -M -1 --to=openembedded-devel@lists.openembedded.org --subject-prefix='meta-python][PATCH'

Maintenance

Layer maintainers: Tim "moto-timo" Orling TicoTimo@gmail.com Derek Straka derek@asterius.io