Skip to content

Commit

Permalink
Fix --print-diff after pathlib has been used
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin committed Apr 28, 2024
1 parent 0430dac commit a9da2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvise/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def diff_files(orig_file, changed_file):
with open(changed_file) as f:
changed_file_lines = f.readlines()

diffed_lines = difflib.unified_diff(orig_file_lines, changed_file_lines, orig_file, changed_file)
diffed_lines = difflib.unified_diff(orig_file_lines, changed_file_lines, str(orig_file), str(changed_file))

return ''.join(diffed_lines)

Expand Down

0 comments on commit a9da2fa

Please sign in to comment.