From 2090b5487e69688be61cfbb97c346c452ab45ba2 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Fri, 15 Apr 2016 02:18:12 +0200 Subject: Make test stricter --- git/test/test_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git') 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 -- cgit v1.2.1