Bug#857940: diffoscope: FTBFS: test errors

Mattia Rizzolo mattia at debian.org
Thu Mar 16 14:01:42 UTC 2017


Source: diffoscope
Version: 79
Severity: serious

=================================== FAILURES ===================================
________________________________ test_diff_meta ________________________________

differences_meta = [<Difference Image metadata -- Image metadata []>]

    @skip_unless_tools_exist('img2txt', 'identify')
    @skip_unless_tool_is_at_least('identify', identify_version, '6.9.6')
    def test_diff_meta(differences_meta):
        expected_diff = get_data('ico_image_meta_expected_diff')
>       assert differences_meta[-1].unified_diff == expected_diff
E       assert '@@ -1,9 +1,9... Channels: \n' == '@@ -1,17 +1,1...a: 0.454545\n'
E         - @@ -1,9 +1,9 @@
E         ?       ^    ^
E         + @@ -1,17 +1,17 @@
E         ?       ^^    ^^
E            Image format: ICO
E         - -File size: 6.8Ki
E         ?               ^ ^
E         + -File size: 6.93KB
E         ?               ^^ ^
E         - +File size: 3.2Ki
E         ?                 ^
E         + +File size: 3.27KB
E         ?                + ^
E         -  Height: 
E         +  Height: 100
E         ?          +++
E         -  Width: 
E         +  Width: 100
E         ?         +++
E         -  Orientation: 
E         +  Orientation: Undefined
E         ?               +++++++++
E         -  Compression type: 
E         +  Compression type: Undefined
E         ?                    +++++++++
E         -  Compression quality: 
E         +  Compression quality: 0
E         ?                       +
E         -  Colorspace: 
E         +  Colorspace: sRGB
E         ?              ++++
E         -  Channels: 
E         +  Channels: srgba
E         ?            +++++
E         + -Depth: 4
E         + +Depth: 1
E         +  Interlace mode: None
E         +  Rendering intent: Perceptual
E         +  X resolution: 0
E         +  Y resolution: 0
E         +  Resolution units: Undefined
E         +  Transparency channel enabled: True
E         +  Gamma: 0.454545

differences_meta = [<Difference Image metadata -- Image metadata []>]
expected_diff = '@@ -1,17 +1,17 @@\n Image format: ICO\n-File size: 6.93KB\n+File size: 3.27KB\n Height: 100\n Width: 100\n Orientatio...resolution: 0\n Y resolution: 0\n Resolution units: Undefined\n Transparency channel enabled: True\n Gamma: 0.454545\n'

tests/comparators/test_ico_image.py:58: AssertionError
________________________________ test_diff_meta ________________________________

differences_meta = [<Difference Image metadata -- Image metadata []>]

    @skip_unless_tools_exist('img2txt', 'identify')
    @skip_unless_tool_is_at_least('identify', identify_version, '6.9.6')
    def test_diff_meta(differences_meta):
        expected_diff = get_data('jpeg_image_meta_expected_diff')
>       assert differences_meta[-1].unified_diff == expected_diff
E       assert '@@ -1,9 +1,9...EXIF data: \n' == '@@ -1,20 +1,2...EXIF data: \n'
E         - @@ -1,9 +1,9 @@
E         ?       ^    ^
E         + @@ -1,20 +1,20 @@
E         ?       ^^    ^^
E            Image format: JPEG
E         - -File size: 662
E         + -File size: 662B
E         ?                +
E         - +File size: 627
E         + +File size: 627B
E         ?                +
E         -  Height: 
E         +  Height: 100
E         ?          +++
E         -  Width: 
E         +  Width: 100
E         ?         +++
E         -  Orientation: 
E         +  Orientation: Undefined
E         ?               +++++++++
E         -  Compression type: 
E         +  Compression type: JPEG
E         ?                    ++++
E         -  Compression quality: 
E         ? ^
E         + -Compression quality: 90
E         ? ^                     ++
E         + +Compression quality: 95
E         -  Colorspace: 
E         +  Colorspace: sRGB
E         ?              ++++
E         -  Channels: 
E         +  Channels: srgb
E         ?            ++++
E         - @@ -12,9 +12,9 @@
E         +  Depth: 8
E         +  Interlace mode: JPEG
E         -  Rendering intent: 
E         +  Rendering intent: Perceptual
E         ?                    ++++++++++
E         -  X resolution: 
E         ? ^
E         + -X resolution: 88
E         ? ^              ++
E         -  Y resolution: 
E         ? ^
E         + -Y resolution: 88
E         ? ^              ++
E         + +X resolution: 65
E         + +Y resolution: 65
E         -  Resolution units: 
E         +  Resolution units: PixelsPerInch
E         ?                    +++++++++++++
E         -  Transparency channel enabled: false
E         ?                                ^
E         +  Transparency channel enabled: False
E         ?                                ^
E         -  Gamma: 
E         +  Gamma: 0.454545
E         -  Number of unique colors: 
E         +  Number of unique colors: 1
E         ?                           +
E           -Comment: Comment #1
E           +Comment: Comment #2
E            EXIF data:

differences_meta = [<Difference Image metadata -- Image metadata []>]
expected_diff = '@@ -1,20 +1,20 @@\n Image format: JPEG\n-File size: 662B\n+File size: 627B\n Height: 100\n Width: 100\n Orientation: ...bled: False\n Gamma: 0.454545\n Number of unique colors: 1\n-Comment: Comment #1\n+Comment: Comment #2\n EXIF data: \n'

tests/comparators/test_jpeg_image.py:73: AssertionError
============== 2 failed, 282 passed, 15 skipped in 235.62 seconds ==============
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest -vv -r sxX -l --cov=diffoscope --cov-report=term-missing --cov-report=html
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.5 returned exit code 13
debian/rules:29: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2

-- 
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://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170316/7f3b5c52/attachment.sig>


More information about the Reproducible-builds mailing list