Skip to content

Fix diff patch parsing #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 19, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make test stricter
  • Loading branch information
nvie committed Apr 19, 2016
commit 2090b5487e69688be61cfbb97c346c452ab45ba2
2 changes: 1 addition & 1 deletion git/test/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_diff_index(self):
res = Diff._index_from_patch_format(None, output.stdout)
assert len(res) == 6
for dr in res:
assert dr.diff
assert dr.diff.startswith(b'@@')
assert str(dr), "Diff to string conversion should be possible"
# end for each diff

Expand Down