[Reproducible-commits] [diffoscope] 02/03: Fix required tool for zip tests

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Sep 17 10:02:53 UTC 2015


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

lunar pushed a commit to branch master
in repository diffoscope.

commit ef7aa8aa4b163833db33a3915dd4265bca0cc895
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Sep 17 11:53:19 2015 +0200

    Fix required tool for zip tests
    
    We use `zipinfo` from the unzip package and not zip.
---
 tests/comparators/test_zip.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/comparators/test_zip.py b/tests/comparators/test_zip.py
index 4be581a..eef9435 100644
--- a/tests/comparators/test_zip.py
+++ b/tests/comparators/test_zip.py
@@ -48,12 +48,12 @@ def test_no_differences(zip1):
 def differences(zip1, zip2):
     return zip1.compare(zip2).details
 
- at pytest.mark.skipif(tool_missing('zip'), reason='missing zip')
+ at pytest.mark.skipif(tool_missing('zipinfo'), reason='missing zip')
 def test_metadata(differences):
     expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/zip_zipinfo_expected_diff')).read()
     assert differences[0].unified_diff == expected_diff
 
- at pytest.mark.skipif(tool_missing('zip'), reason='missing zip')
+ at pytest.mark.skipif(tool_missing('zipinfo'), reason='missing zip')
 def test_compressed_files(differences):
     assert differences[1].source1 == 'dir/text'
     assert differences[1].source2 == 'dir/text'

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



More information about the Reproducible-commits mailing list