<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-openembedded.git/meta-python/recipes-devtools/python/python3-mock_5.1.0.bb, branch wrynose</title>
<subtitle>Mirror of git.openembedded.org/meta-openembedded</subtitle>
<id>https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=wrynose</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=wrynose'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/'/>
<updated>2025-03-06T14:58:00+00:00</updated>
<entry>
<title>python3-mock: Upgrade 5.1.0 -&gt; 5.2.0</title>
<updated>2025-03-06T14:58:00+00:00</updated>
<author>
<name>Leon Anavi</name>
<email>leon.anavi@konsulko.com</email>
</author>
<published>2025-03-05T13:34:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=33de56236fa0e0a0d1bf620758cae310f4750368'/>
<id>urn:sha1:33de56236fa0e0a0d1bf620758cae310f4750368</id>
<content type='text'>
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 &lt;leon.anavi@konsulko.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>python3-mock: Fix LICENSE</title>
<updated>2024-08-26T14:36:07+00:00</updated>
<author>
<name>Niko Mauno</name>
<email>niko.mauno@vaisala.com</email>
</author>
<published>2024-08-26T09:40:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=2acdca2270292ab0a3d3714734da14331a2fc592'/>
<id>urn:sha1:2acdca2270292ab0a3d3714734da14331a2fc592</id>
<content type='text'>
According to
https://github.com/testing-cabal/mock/blob/5.1.0/LICENSE.txt the
project is subject to BSD-2-Clause license. (Also
https://pypi.org/project/mock/ states 'BSD License'.)

Signed-off-by: Niko Mauno &lt;niko.mauno@vaisala.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>python3-mock: upgrade 5.0.2 -&gt; 5.1.0</title>
<updated>2023-07-21T02:08:57+00:00</updated>
<author>
<name>Wang Mingyu</name>
<email>wangmy@fujitsu.com</email>
</author>
<published>2023-07-18T04:25:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=cd765ff58afa465b994778ff787fc152ebc0aa5c'/>
<id>urn:sha1:cd765ff58afa465b994778ff787fc152ebc0aa5c</id>
<content type='text'>
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 &lt;wangmy@fujitsu.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
</feed>
