Skip to content
Merged
Changes from all commits
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
4 changes: 4 additions & 0 deletions doc/en/how-to/assert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ Special comparisons are done for a number of cases:
* comparing long sequences: first failing indices
* comparing dicts: different entries

In string context diffs, lines prefixed with ``-`` come from the left-hand side
of ``assert left == right``, while lines prefixed with ``+`` come from the
right-hand side.

See the :ref:`reporting demo <tbreportdemo>` for many more examples.

Defining your own explanation for failed assertions
Expand Down