Skip to content
Snippets Groups Projects
Verified Commit a5426f72 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Make test_ps.test_text_diff pass with ghostscript 9.26.


Cherry-picked from de05b148

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent b94933c3
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ 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, skip_unless_tool_is_at_least
skip_unless_tool_is_at_least
from utils.nonexisting import assert_non_existing
......@@ -57,11 +57,11 @@ def test_internal_diff(differences):
assert differences.unified_diff == expected_diff
@skip_unless_tool_is_at_most('ps2ascii', ps2ascii_version, '9.21')
@skip_unless_tool_is_at_least('ps2ascii', ps2ascii_version, '9.21')
@skip_unless_tool_is_at_least('ps2ascii', ps2ascii_version, '9.26')
def test_text_diff(differences):
computed_diff = differences.details[0].unified_diff.replace('\r\n', '\n')
expected_diff = get_data('ps_text_expected_diff')
assert differences.details[0].unified_diff == expected_diff
assert computed_diff == expected_diff
@skip_unless_tools_exist('ps2ascii')
......
@@ -1,5 +1,5 @@
-Today's date: February 28, 2016
+Today's date: February 27, 2016
1
@@ -1,2 +1,2 @@
- Today’s date: February 28, 2016
+ Today’s date: February 27, 2016
1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment