bpo-43478: Fix formatting of NEWS entry (GH-25335)

This commit is contained in:
Pablo Galindo 2021-04-10 22:19:02 +01:00 committed by GitHub
parent ecf14e6557
commit 6e468cb16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1 +1,6 @@
Mocks can no longer be used as the specs for other Mocks. As a result, an already-mocked object cannot have an attribute mocked using `autospec=True` or be the subject of a `create_autospec(...)` call. This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.
Mocks can no longer be used as the specs for other Mocks. As a result, an
already-mocked object cannot have an attribute mocked using ``autospec=True``
or be the subject of a ``create_autospec(...)`` call. This can uncover bugs in
tests since these Mock-derived Mocks will always pass certain tests (e.g.
:func:`isinstance`) and builtin assert functions (e.g. assert_called_once_with)
will unconditionally pass.