summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Driessen <me@nvie.com>2016-04-15 02:18:12 +0200
committerVincent Driessen <me@nvie.com>2016-04-19 21:46:16 +0200
commit2090b5487e69688be61cfbb97c346c452ab45ba2 (patch)
tree53c6db212e1b8b218c8fe90cf3690f26b5b06030
parentcdf7c5aca2201cf9dfc3cd301264da4ea352b737 (diff)
downloadgitpython-2090b5487e69688be61cfbb97c346c452ab45ba2.tar.gz
Make test stricter
-rw-r--r--git/test/test_diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_diff.py b/git/test/test_diff.py
index 05f8f3ae..0c670f0b 100644
--- a/git/test/test_diff.py
+++ b/git/test/test_diff.py
@@ -116,7 +116,7 @@ class TestDiff(TestBase):
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