Skip to content

Commit f5eab1f

Browse files
committed
tweaks
1 parent 56a7b6c commit f5eab1f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pytest_icdiff.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
MARGINS = MARGIN_L + GUTTER + 1
1010

1111

12-
1312
def pytest_assertrepr_compare(config, op, left, right):
1413
if op != '==':
1514
return
@@ -48,4 +47,4 @@ def pytest_assertrepr_compare(config, op, left, right):
4847

4948
icdiff_lines = list(differ.make_table(pretty_left, pretty_right))
5049

51-
return [f'equals failed'] + [color_off + l for l in icdiff_lines]
50+
return ['equals failed'] + [color_off + l for l in icdiff_lines]

tests/test_pytest_icdiff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def test_a():
191191

192192

193193
def test_long_lines_in_comparators_are_wrapped_sensibly_multiline(testdir):
194-
left = {1: "hello " * 20}
195-
right = {1: "hella " * 20}
194+
left = {1: "hello " * 20, 2: 'two'}
195+
right = {1: "hella " * 20, 2: 'two'}
196196
testdir.makepyfile(
197197
f"""
198198
def test_one():

0 commit comments

Comments
 (0)