[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-12-08 01:02:07 +00:00
parent 154c11034d
commit 1741952b49
2 changed files with 10 additions and 10 deletions

View File

@ -336,7 +336,7 @@ def _compare_eq_iterable(
left_formatting, right_formatting = _format_for_empty_and_non_empty(left, right) left_formatting, right_formatting = _format_for_empty_and_non_empty(left, right)
lines_left = len(left_formatting) lines_left = len(left_formatting)
lines_right = len(right_formatting) lines_right = len(right_formatting)
if lines_left > 1 or lines_right > 1: if lines_left > 1 or lines_right > 1:
_surrounding_parens_on_own_lines(left_formatting) _surrounding_parens_on_own_lines(left_formatting)
_surrounding_parens_on_own_lines(right_formatting) _surrounding_parens_on_own_lines(right_formatting)

View File

@ -396,7 +396,7 @@ class TestAssert_reprcompare:
"- eggs", "- eggs",
"+ spam", "+ spam",
] ]
def test_multiline_diff(self) -> None: def test_multiline_diff(self) -> None:
m1 = [ m1 = [
"This is some dummy test which shows the strange way in which Pycharm" "This is some dummy test which shows the strange way in which Pycharm"
@ -411,14 +411,14 @@ class TestAssert_reprcompare:
"This is some dummy test which shows the strange way in which Pycharm" "This is some dummy test which shows the strange way in which Pycharm"
" displays the full diff.", " displays the full diff.",
"This is some dummy test which shows the strange way in which Pycharm" "This is some dummy test which shows the strange way in which Pycharm"
" displays the full diff." " displays the full diff.",
] ]
assert callequal(m1, []) == [ assert callequal(m1, []) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
"Left contains one more item: 'This is some dummy test which shows the " "Left contains one more item: 'This is some dummy test which shows the "
"strange way in which Pycharm displays the full diff.'", "strange way in which Pycharm displays the full diff.'",
'Use -v to get more diff', "Use -v to get more diff",
] ]
assert callequal(m1, [], verbose=True) == [ assert callequal(m1, [], verbose=True) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
@ -429,15 +429,15 @@ class TestAssert_reprcompare:
"+ ['This is some dummy test which shows the strange way in which Pycharm " "+ ['This is some dummy test which shows the strange way in which Pycharm "
"displays the full diff.']", "displays the full diff.']",
] ]
assert callequal(m2, []) == [ assert callequal(m2, []) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
"Left contains one more item: 'This is some dummy test which shows the " "Left contains one more item: 'This is some dummy test which shows the "
"strange way in which Pycharm displays the full diff.This is some dummy test " "strange way in which Pycharm displays the full diff.This is some dummy test "
"which shows the strange way in which Pycharm displays the full diff.'", "which shows the strange way in which Pycharm displays the full diff.'",
'Use -v to get more diff', "Use -v to get more diff",
] ]
assert callequal(m2, [], verbose=True) == [ assert callequal(m2, [], verbose=True) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
"Left contains one more item: 'This is some dummy test which shows the " "Left contains one more item: 'This is some dummy test which shows the "
@ -449,14 +449,14 @@ class TestAssert_reprcompare:
"displays the full diff.This is some dummy test which shows the strange " "displays the full diff.This is some dummy test which shows the strange "
"way in which Pycharm displays the full diff.']", "way in which Pycharm displays the full diff.']",
] ]
assert callequal(m3, []) == [ assert callequal(m3, []) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
"Left contains 2 more items, first extra item: 'This is some dummy test which shows the strange way in " "Left contains 2 more items, first extra item: 'This is some dummy test which shows the strange way in "
"which Pycharm displays the full diff.'", "which Pycharm displays the full diff.'",
'Use -v to get more diff', "Use -v to get more diff",
] ]
assert callequal(m3, [], verbose=True) == [ assert callequal(m3, [], verbose=True) == [
"['This is som...e full diff.'] == []", "['This is som...e full diff.'] == []",
"Left contains 2 more items, first extra item: 'This is some dummy test which shows the strange way in " "Left contains 2 more items, first extra item: 'This is some dummy test which shows the strange way in "