Lines Matching refs:diff
1659 # Should we do a fancy diff?
1661 # Not unless they asked for a fancy diff.
1667 # If expected output uses ellipsis, a meaningful fancy diff is
1669 # a diff was a major help anyway, so this is commented out.
1671 # and could be the basis for a kick-ass diff in this case.
1680 # The other diff types need at least a few lines to be helpful.
1696 # Check if we should use diff.
1703 diff = difflib.unified_diff(want_lines, got_lines, n=2)
1704 diff = list(diff)[2:] # strip the diff header
1705 kind = 'unified diff with -expected +actual'
1707 diff = difflib.context_diff(want_lines, got_lines, n=2)
1708 diff = list(diff)[2:] # strip the diff header
1709 kind = 'context diff with expected followed by actual'
1712 diff = list(engine.compare(want_lines, got_lines))
1715 assert 0, 'Bad diff option'
1716 return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1718 # If we're not using diff, then simply list the expected