[diffoscope] 01/01: tests/comparators/test_deb: make test_md5sums less brittle

Ximin Luo infinity0 at debian.org
Wed Sep 20 22:58:29 CEST 2017


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

infinity0 pushed a commit to branch master
in repository diffoscope.

commit 0fb6d8ab9b2fa281f00df63631c30ef0550cb5ba
Author: Ximin Luo <infinity0 at debian.org>
Date:   Wed Sep 20 22:58:05 2017 +0200

    tests/comparators/test_deb: make test_md5sums less brittle
---
 tests/comparators/test_deb.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/comparators/test_deb.py b/tests/comparators/test_deb.py
index 0e6a37d..1cc8297 100644
--- a/tests/comparators/test_deb.py
+++ b/tests/comparators/test_deb.py
@@ -81,7 +81,10 @@ def test_identification_of_md5sums_in_deb(deb1, deb2, monkeypatch):
 
 
 def test_md5sums(differences):
-    assert differences[1].details[0].details[1].details[0].comment == 'Files differ'
+    assert differences[1].details[0].details[1].details[0].comment
+    # we skip diffing the md5sums since it's not interesting, the actual files are diffed instead
+    assert not differences[1].details[0].details[1].details[0].unified_diff
+    assert not differences[1].details[0].details[1].details[0].details
 
 
 def test_identical_files_in_md5sums(deb1, deb2):

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


More information about the diffoscope mailing list