Update dependency mock to ==5.2.* #1011
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
==5.1.*->==5.2.*Release Notes
testing-cabal/mock (mock)
v5.2.0Compare Source
This is release is
in memory of Michael Foord__, who originally authored themockpackageand passed away in January 2025.
__ https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317
gh-65454: :func:
unittest.mock.Mock.attach_mockno longer triggers a callto a
PropertyMockbeing attached.gh-117765: Improved documentation for :func:
unittest.mock.patch.dictgh-124176: Add support for :func:
dataclasses.dataclassin:func:
unittest.mock.create_autospec. Nowcreate_autospecwill checkfor potential dataclasses and use :func:
dataclasses.fieldsfunction toretrieve the spec information.
gh-123934: Fix :class:
unittest.mock.MagicMockreseting magic methodsreturn values after
.reset_mock(return_value=True)was called.gh-90848: Fixed :func:
unittest.mock.create_autospecto configure parentmock with keyword arguments.
gh-113569: Indicate if there were no actual calls in unittest
:meth:
~unittest.mock.Mock.assert_has_callsfailure.gh-122858: Deprecate :func:
!asyncio.iscoroutinefunctionin favor of:func:
inspect.iscoroutinefunction.gh-104745: Limit starting a patcher (from :func:
unittest.mock.patchor:func:
unittest.mock.patch.object) more than once without stopping itgh-75988: Fixed :func:
unittest.mock.create_autospecto pass the callthrough to the wrapped object to return the real result.
gh-119600: Fix :func:
unittest.mock.patchto not read attributes of thetarget when
new_callableis set. Patch by Robert Collins.gh-113407: Fix import of :mod:
unittest.mockwhen CPython is builtwithout docstrings.
gh-120732: Fix
namepassing to :class:unittest.mock.Mockobject whenusing :func:
unittest.mock.create_autospec.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.