Skip to content

Commit 921fad1

Browse files
committed
Preparing for 5.0.1 release.
1 parent 696fb23 commit 921fad1

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
5.0.1
2+
-----
3+
4+
- gh-100740: Fix ``unittest.mock.Mock`` not respecting the spec for
5+
attribute names prefixed with ``assert``.
6+
7+
- gh-100690: ``Mock`` objects which are not unsafe will now raise an
8+
``AttributeError`` when accessing an attribute that matches the name of an
9+
assertion but without the prefix ``assert_``, e.g. accessing
10+
``called_once`` instead of ``assert_called_once``. This is in addition to
11+
this already happening for accessing attributes with prefixes ``assert``,
12+
``assret``, ``asert``, ``aseert``, and ``assrt``.
13+
14+
- gh-96127: ``inspect.signature`` was raising ``TypeError`` on call with
15+
mock objects. Now it correctly returns ``(*args, **kwargs)`` as infered
16+
signature.
17+
118
5.0.0
219
-----
320

NEWS.d/2022-08-27-10-35-50.gh-issue-96127.8RdLre.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

NEWS.d/2023-01-02-16-59-49.gh-issue-100690.2EgWPS.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

NEWS.d/2023-01-04-09-53-38.gh-issue-100740.-j5UjI.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

mock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import mock.mock as _mock
88
from mock.mock import *
99

10-
__version__ = '5.0.0'
10+
__version__ = '5.0.1'
1111
version_info = tuple(int(p) for p in
1212
re.match(r'(\d+).(\d+).(\d+)', __version__).groups())
1313

0 commit comments

Comments
 (0)