[diffoscope] 01/01: tests.binary: skip a test if the 'distro' module is not available

Mattia Rizzolo mattia at debian.org
Wed Aug 2 11:37:52 CEST 2017


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

mattia pushed a commit to branch master
in repository diffoscope.

commit 189ab97cc5a281b710aaf4971c3a59620d338746
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Aug 2 11:37:35 2017 +0200

    tests.binary: skip a test if the 'distro' module is not available
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 tests/comparators/test_binary.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/comparators/test_binary.py b/tests/comparators/test_binary.py
index d9e0bf7..9cd156a 100644
--- a/tests/comparators/test_binary.py
+++ b/tests/comparators/test_binary.py
@@ -159,6 +159,7 @@ def test_with_compare_details_and_extraction_error():
     assert normalize_zeros(difference.unified_diff) == expected_diff
 
 @skip_unless_tools_exist('xxd')
+ at skip_unless_module_exists('distro')
 def test_with_compare_details_and_tool_not_found(monkeypatch):
     from diffoscope.external_tools import EXTERNAL_TOOLS
     monkeypatch.setitem(

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


More information about the diffoscope mailing list