[diffoscope] 01/01: Properly skip test requiring python-debian when unavailable
Jérémy Bobbio
lunar at moszumanska.debian.org
Tue Aug 23 22:51:06 CEST 2016
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit b69584923a969fbdb11616af98cee724dc39b8cb
Author: Jérémy Bobbio <lunar at debian.org>
Date: Tue Aug 23 22:50:46 2016 +0200
Properly skip test requiring python-debian when unavailable
---
tests/comparators/test_debian.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/comparators/test_debian.py b/tests/comparators/test_debian.py
index 1c2a24a..b25e56f 100644
--- a/tests/comparators/test_debian.py
+++ b/tests/comparators/test_debian.py
@@ -138,9 +138,11 @@ def dot_changes_differences_different_contents_and_identical_files(dot_changes2,
output_text(difference, print_func=print)
return difference.details
+ at pytest.mark.skipif(miss_debian_module, reason='debian module is not installed')
def test_dot_changes_no_differences_exclude_buildinfo(dot_changes1, dot_changes3):
difference = dot_changes1.compare(dot_changes3)
assert difference is None
+
@pytest.mark.skipif(miss_debian_module, reason='debian module is not installed')
def test_dot_changes_identical_contents_and_different_files(dot_changes_differences_identical_contents_and_different_files):
assert dot_changes_differences_identical_contents_and_different_files[0]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list