forked from pytest-dev/pytest
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assert: fix _compare_eq_iterable: re-format both sides
Follow-up to 946434c (pytest-dev#5924). Before this patch the test would look like this: {'env': {'sub...s wrapped'}}}} == {'env': {'sub...}}}, 'new': 1} Omitting 1 identical items, use -vv to show Right contains 1 more item: {'new': 1} Full diff: { 'env': {'sub': {'long_a': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', - 'sub1': {'long_a': 'substring ' + 'sub1': {'long_a': 'substring that gets wrapped'}}}, ? +++++++++++++++++ ++++ + 'new': 1, - 'that ' - 'gets ' - 'wrapped'}}}, }
- Loading branch information
Showing
2 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters