mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
bpo-43478: Fix formatting of NEWS entry (GH-25335)
This commit is contained in:
parent
ecf14e6557
commit
6e468cb16b
1 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue