Bug#911846: diffoscope: test failures in stretch-backports
Mattia Rizzolo
mattia at debian.org
Thu Oct 25 13:47:08 BST 2018
Source: diffoscope
Version: 104
Severity: minor
Trying to build v104 in stretch-backports, one end up with this test
failure, introduced with the new ocaml comparator.
I just hope we won't need to do something like the haskell comparator,
which test basically never run... :(
=================================== FAILURES ===================================
__________________________________ test_diff ___________________________________
differences = []
@skip_unless_tools_exist('ocamlobjinfo')
def test_diff(differences):
expected_diff = get_data('ocaml_expected_diff')
> assert differences[0].unified_diff == expected_diff
E IndexError: list index out of range
differences = []
expected_diff = '@@ -1,5 +1,14 @@\n Unit name: Uchar\n Interfaces imported:\n \t84838649f9351de166bfa8b9f2c84db4\tUchar\n \t07ea9e20ae...lib -safe-string -strict-formats -c uchar.mli\n+Load path: \n+cmt interface digest: 84838649f9351de166bfa8b9f2c84db4\n'
tests/comparators/test_ocaml.py:49: IndexError
__________________________ test_compare_non_existing ___________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
cmi1 = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
@skip_unless_tools_exist('ocamlobjinfo')
def test_compare_non_existing(monkeypatch, cmi1):
> assert_non_existing(monkeypatch, cmi1, has_null_source=False)
cmi1 = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
tests/comparators/test_ocaml.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
fixture = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
has_null_source = False, has_details = True
def assert_non_existing(monkeypatch, fixture, has_null_source=True, has_details=True):
monkeypatch.setattr(Config(), 'new_file', True)
assert Config().new_file, "didnt get patched"
difference = fixture.compare(MissingFile('/nonexisting', fixture))
assert difference.source2 == '/nonexisting'
> assert not has_details or len(difference.details) > 0
E AssertionError
difference = <Difference /builds/reproducible-builds/diffoscope/tests/data/test1.cmi -- /nonexisting []>
fixture = <<class 'abc.OcamlInterfaceFile'> /builds/reproducible-builds/diffoscope/tests/data/test1.cmi>
has_details = True
has_null_source = False
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8e93627e80>
tests/utils/nonexisting.py:32: AssertionError
============== 2 failed, 377 passed, 30 skipped in 307.14 seconds ==============
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20181025/6c17ffc0/attachment.sig>
More information about the Reproducible-builds
mailing list