Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make autospeccing note text more succint and lint whitespace
  • Loading branch information
shaunagm committed May 20, 2024
commit 71aabe890c0734ef3914df9b490024baf946b516
5 changes: 2 additions & 3 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2592,9 +2592,8 @@ broken.

.. versionchanged:: 3.5

Before 3.5, Mocks suffered from an additional flaw where tests with a typo in
the word assert would silently pass when they should raise an error. You can still
achieve this behavior by passing ``unsafe=True`` to the Mock class.
Before 3.5, tests with a typo in the word assert would silently pass when they should
raise an error. You can still achieve this behavior by passing ``unsafe=True`` to Mock.

Note that this is another reason why you need integration tests as well as
unit tests. Testing everything in isolation is all fine and dandy, but if you
Expand Down