Commit 47588095 authored by Chris Lamb's avatar Chris Lamb

Use a simpler, previous fix to support gnumeric 1.12.43.

This reverts both 344ae4d6 and
ef5ae496. The mess was caused by me not
actually pushing my change causing duplicated work by Mattia. Mea culpa...
parent 344ae4d6
Pipeline #20411 failed with stage
in 9 minutes and 20 seconds
......@@ -61,4 +61,4 @@ class GnumericFile(File):
with open( as f:
......@@ -18,27 +18,17 @@
# along with diffoscope. If not, see <>.
import pytest
import subprocess
from diffoscope.comparators.gnumeric import GnumericFile
from import load_fixture, get_data
from import skip_unless_tools_exist
from ..utils.nonexisting import assert_non_existing
from import (
gnumeric1 = load_fixture('test1.gnumeric')
gnumeric2 = load_fixture('test2.gnumeric')
def ssconvert_version():
out = subprocess.check_output(('ssconvert', '--version'))
return out.decode('utf-8').split()[2].replace("'", '')
def test_identification(gnumeric1):
assert isinstance(gnumeric1, GnumericFile)
......@@ -53,15 +43,9 @@ def differences(gnumeric1, gnumeric2):
@skip_unless_tool_is_at_most('ssconvert', ssconvert_version, '1.12.42')
def test_diff_old(differences):
expected_diff = get_data('gnumeric_1.12.42_expected_diff')
assert differences[0].unified_diff == expected_diff
@skip_unless_tool_is_at_least('ssconvert', ssconvert_version, '1.12.43')
def test_diff_new(differences):
expected_diff = get_data('gnumeric_1.12.43_expected_diff')
def test_diff(differences):
expected_diff = get_data('gnumeric_expected_diff')
assert differences[0].unified_diff == expected_diff
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment