[diffoscope] 01/01: Add test for type checking of path1/path2/source added in b7830b5c.

Chris Lamb chris at chris-lamb.co.uk
Mon Aug 15 10:47:50 CEST 2016


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

lamby pushed a commit to branch master
in repository diffoscope.

commit cd992eab28ee62d226b7df907263bc16111f7dc2
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Aug 15 09:47:17 2016 +0100

    Add test for type checking of path1/path2/source added in b7830b5c.
---
 tests/test_difference.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/test_difference.py b/tests/test_difference.py
index 41dd0c8..fffe3de 100644
--- a/tests/test_difference.py
+++ b/tests/test_difference.py
@@ -35,3 +35,10 @@ def test_too_long_diff_block_lines(monkeypatch):
     too_long_text_b = StringIO("b\n" * 21)
     difference = Difference.from_text_readers(too_long_text_a, too_long_text_b, 'a', 'b')
     assert '[ 11 lines removed ]' in difference.unified_diff
+
+def test_non_str_arguments_to_source1_source2():
+    a = StringIO('a')
+    b = StringIO('b')
+
+    with pytest.raises(TypeError):
+        Difference.from_text_readers(a, b, a, b)

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


More information about the diffoscope mailing list