Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Releases
========

UNRELEASED
----------
3.17.0
------

*2026-10-17*

* `#641 <https://github.com/pytest-dev/pytest-mock/pull/641>`_: Failures of mock assertions such as ``assert_called_with`` are again reported only once, instead of two or three times with the original error from the ``mock`` module chained before them.
* `#642 <https://github.com/pytest-dev/pytest-mock/pull/642>`_: Mock assertion failures no longer show misleading introspection when they are not about the arguments of the last call: ``assert_called``, ``assert_called_once``, ``assert_not_called``, ``assert_any_call``, their ``await`` counterparts, and ``assert_called_once_with``/``assert_awaited_once_with`` when the mock was not called (awaited) exactly once. The introspection also no longer reports arguments passed by position versus by keyword as different for autospecced mocks, and no longer shows empty ``Args:``/``Kwargs:`` sections when assertion rewriting is not available.
Expand Down
6 changes: 4 additions & 2 deletions RELEASING.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Here are the steps on how to make a new release.

1. Choose the version number: bump the minor version (``X.Y+1.0``) if the release adds features
or drops support for a Python version, or the patch version (``X.Y.Z+1``) if it only contains fixes.
1. Choose the version number: bump the minor version (``X.Y+1.0``) if the release adds features,
drops support for a Python version, or removes or noticeably changes existing behavior (for
example, what is shown in failure messages), or the patch version (``X.Y.Z+1``) if it only
contains fixes.

2. Create a ``release-VERSION`` branch from ``upstream/main``.

Expand Down
Loading