]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43478: Fix formatting of NEWS entry (GH-25335)
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 10 Apr 2021 21:19:02 +0000 (22:19 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Apr 2021 21:19:02 +0000 (22:19 +0100)
Misc/NEWS.d/next/Library/2021-04-10-03-30-36.bpo-43478.iZcBTq.rst

index aaa1992f07fb460aa5034b805b0ae8575f267b37..12a03d79e72e0fea7b68525aeea00c84cb23e75b 100644 (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.
\ No newline at end of file
+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.