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.0
->==5.2.0
Release Notes
testing-cabal/mock (mock)
v5.2.0
Compare Source
This is release is
in memory of Michael Foord
__, who originally authored themock
packageand passed away in January 2025.
__ https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317
gh-65454: :func:
unittest.mock.Mock.attach_mock
no longer triggers a callto a
PropertyMock
being attached.gh-117765: Improved documentation for :func:
unittest.mock.patch.dict
gh-124176: Add support for :func:
dataclasses.dataclass
in:func:
unittest.mock.create_autospec
. Nowcreate_autospec
will checkfor potential dataclasses and use :func:
dataclasses.fields
function toretrieve the spec information.
gh-123934: Fix :class:
unittest.mock.MagicMock
reseting magic methodsreturn values after
.reset_mock(return_value=True)
was called.gh-90848: Fixed :func:
unittest.mock.create_autospec
to configure parentmock with keyword arguments.
gh-113569: Indicate if there were no actual calls in unittest
:meth:
~unittest.mock.Mock.assert_has_calls
failure.gh-122858: Deprecate :func:
!asyncio.iscoroutinefunction
in favor of:func:
inspect.iscoroutinefunction
.gh-104745: Limit starting a patcher (from :func:
unittest.mock.patch
or:func:
unittest.mock.patch.object
) more than once without stopping itgh-75988: Fixed :func:
unittest.mock.create_autospec
to pass the callthrough to the wrapped object to return the real result.
gh-119600: Fix :func:
unittest.mock.patch
to not read attributes of thetarget when
new_callable
is set. Patch by Robert Collins.gh-113407: Fix import of :mod:
unittest.mock
when CPython is builtwithout docstrings.
gh-120732: Fix
name
passing to :class:unittest.mock.Mock
object 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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.