[Git][reproducible-builds/diffoscope][master] Fix tests when using ghostscript 9.20 vs 9.26 for Debian stable and stable with security enabled.
Chris Lamb
gitlab at salsa.debian.org
Tue Feb 12 13:49:09 CET 2019
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
4a35e554 by Chris Lamb at 2019-02-12T12:48:13Z
Fix tests when using ghostscript 9.20 vs 9.26 for Debian stable and stable with security enabled.
- - - - -
1 changed file:
- tests/comparators/test_ps.py
Changes:
=====================================
tests/comparators/test_ps.py
=====================================
@@ -23,7 +23,8 @@ import subprocess
from diffoscope.comparators.ps import PsFile
from ..utils.data import load_fixture, get_data
-from ..utils.tools import skip_unless_tools_exist, skip_unless_tool_is_at_most
+from ..utils.tools import skip_unless_tools_exist, \
+ skip_unless_tool_is_at_most, skip_unless_tool_is_at_least
from ..utils.nonexisting import assert_non_existing
@@ -49,7 +50,7 @@ def differences(ps1, ps2):
return ps1.compare(ps2)
- at skip_unless_tools_exist('ps2ascii')
+ at skip_unless_tool_is_at_least('ps2ascii', ps2ascii_version, '9.21')
def test_internal_diff(differences):
expected_diff = get_data('ps_internal_expected_diff')
assert differences.unified_diff == expected_diff
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/4a35e55497fac9845ca55be28fbd9e25b4e8576f
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/4a35e55497fac9845ca55be28fbd9e25b4e8576f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190212/051a1498/attachment.html>
More information about the rb-commits
mailing list