Skip to content

tests fail with new inkscape #20617

Closed

Description

@MeggyCal

Bug report

Bug summary

One test of matplotlib 3.4.2 fail with inkscape 1.1. The tests passed with inkscape 1.0.2.

[  254s] ______________________ test_markevery_linear_scales[svg] _______________________
[  254s] [gw4] linux -- Python 3.9.5 /usr/bin/python3.9
[  254s] 
[  254s] expected = '/home/abuild/rpmbuild/BUILD/matplotlib-3.4.2/result_images/test_axes/markevery_linear_scales-expected.svg'
[  254s] actual = PosixPath('/home/abuild/rpmbuild/BUILD/matplotlib-3.4.2/result_images/test_axes/markevery_linear_scales.svg')
[  254s] tol = 0
[  254s] 
[  254s]     def _raise_on_image_difference(expected, actual, tol):
[  254s]         __tracebackhide__ = True
[  254s]     
[  254s]         err = compare_images(expected, actual, tol, in_decorator=True)
[  254s]         if err:
[  254s]             for key in ["actual", "expected", "diff"]:
[  254s]                 err[key] = os.path.relpath(err[key])
[  254s] >           raise ImageComparisonFailure(
[  254s]                 ('images not close (RMS %(rms).3f):'
[  254s]                     '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)
[  254s] E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 0.001):
[  254s] E           	result_images/test_axes/markevery_linear_scales_svg.png
[  254s] E           	result_images/test_axes/markevery_linear_scales-expected_svg.png
[  254s] E           	result_images/test_axes/markevery_linear_scales_svg-failed-diff.png

It fails with pytest 6.2.4 on Python 3.9 and 3.8. The failure was observed on x86_64 linux (the closest distro would be openSUSE Tumbleweed).

Activity

  1. MeggyCal commented on Jul 9, 2021

    @MeggyCal
    Author

    The failing test comes from test_axes.py.

  2. added this to the v3.4.3 milestone on Jul 10, 2021
  3. added a commit that references this issue on Jul 22, 2021
    093fdec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions