-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Refer to
The documentation was not updated after changes that made exceptions more readable like #11804. This matters since documentation would be easier to follow & google with up-to-date examples.
One example is:
cpython/Doc/library/unittest.mock-examples.rst
Lines 796 to 801 in 5dcbbd8
>>> mock.foo_bar.assert_called_once_with('baz', spam='eggs') | |
>>> mock.foo_bar() | |
>>> mock.foo_bar.assert_called_once_with('baz', spam='eggs') | |
Traceback (most recent call last): | |
... | |
AssertionError: Expected to be called once. Called 2 times. |
When output as of @ Python 3.13.0a0:
AssertionError: Expected 'foo_bar' to be called once. Called 2 times.
Calls: [call('baz', spam='eggs'), call()].
There are multiple examples of this. The easy fix is to just run the examples and update with the latest exception messages.
I prepared a fix for this, coming up in PR unless you stop me 🌞
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir