8000 bpo-43478: Fix formatting of NEWS entry (GH-25335) · python/cpython@6e468cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e468cb

Browse files
authored
bpo-43478: Fix formatting of NEWS entry (GH-25335)
1 parent ecf14e6 commit 6e468cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
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.
1+
Mocks can no longer be used as the specs for other Mocks. As a result, an
2+
already-mocked object cannot have an attribute mocked using ``autospec=True``
3+
or be the subject of a ``create_autospec(...)`` call. This can uncover bugs in
4+
tests since these Mock-derived Mocks will always pass certain tests (e.g.
5+
:func:`isinstance`) and builtin assert functions (e.g. assert_called_once_with)
6+
will unconditionally pass.

0 commit comments

Comments
 (0)
0