[diffoscope] 07/10: Update test case for --max-diff-input-lines

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jan 20 16:11:45 CET 2016


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit 7d69ea3264b87d0996b191de9d2fdb4febc0e001
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jan 20 13:51:53 2016 +0000

    Update test case for --max-diff-input-lines
    
    It has been broken when we added hashing.
---
 tests/test_difference.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_difference.py b/tests/test_difference.py
index d4c8c0e..41dd0c8 100644
--- a/tests/test_difference.py
+++ b/tests/test_difference.py
@@ -27,7 +27,7 @@ def test_too_much_input_for_diff(monkeypatch):
     too_long_text_a = StringIO("a\n" * 21)
     too_long_text_b = StringIO("b\n" * 21)
     difference = Difference.from_text_readers(too_long_text_a, too_long_text_b, 'a', 'b')
-    assert '[ Too much input for diff ]' in difference.unified_diff 
+    assert '[ Too much input for diff ' in difference.unified_diff 
 
 def test_too_long_diff_block_lines(monkeypatch):
     monkeypatch.setattr(Config, 'max_diff_block_lines', 10)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list