Skip to content

Commit a525bdb

Browse files
authored
Diff preview shows actual difference
1 parent 36d9b79 commit a525bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_icdiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ def pytest_assertrepr_compare(config, op, left, right):
5252
else:
5353
color_off = icdiff.color_codes['none']
5454

55-
icdiff_lines = list(differ.make_table(pretty_left, pretty_right))
55+
icdiff_lines = list(differ.make_table(pretty_left, pretty_right, context=True))
5656

5757
return ['equals failed'] + [color_off + l for l in icdiff_lines]

0 commit comments

Comments
 (0)