Skip to content

Commit 2090b54

Browse files
committed
Make test stricter
1 parent cdf7c5a commit 2090b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/test/test_diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_diff_index(self):
116116
res = Diff._index_from_patch_format(None, output.stdout)
117117
assert len(res) == 6
118118
for dr in res:
119-
assert dr.diff
119+
assert dr.diff.startswith(b'@@')
120120
assert str(dr), "Diff to string conversion should be possible"
121121
# end for each diff
122122

0 commit comments

Comments
 (0)