Skip to content

[Bug]: spurious test failures #30703

@MeggyCal

Description

@MeggyCal

Bug summary

Hi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distribution and we noticed some test failures which look... well, odd.

First, while trying to update gc to 8.2.10, test_backend_svg.py::test_rasterized[svg] failed on image comparison. Sadly, I don't have that images.

Second, while trying to update xkeyboard-config to 2.46, test_getattr.py::test_getattr with any gtk3-related backend hangs and is killed after almost two hours for being idle.

It is puzzling for me (I don't see what the packages have in common with matplotlib), but the same result is produced after multiple rebuilds, so it isn't just random failure. Also see https://bugzilla.suse.com/show_bug.cgi?id=1252721. Could you please take a look into this issue?

A bit of a mystery... well, it is Halloween after all 🙂 .

Code for reproduction

run tests, once with gc 8.2.10, for the second time with xkeyboard-config 2.46

Actual outcome

gc:

[  447s] >           _raise_on_image_difference(
[  447s]                 ref_image_path, test_image_path, tol=tol
[  447s]             )
[  447s] E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 147.627):
[  447s] E           	result_images/test_backend_svg/test_rasterized[svg]_svg.png
[  447s] E           	result_images/test_backend_svg/test_rasterized[svg]-expected_svg.png
[  447s] E           	result_images/test_backend_svg/test_rasterized[svg]_svg-failed-diff.png
[  447s] 
[  447s] /usr/lib64/python3.11/site-packages/matplotlib/testing/decorators.py:422: ImageComparisonFailure

xkeyboard-config:

[  547s] [gw3] [ 94%] PASSED test_getattr.py::test_getattr[matplotlib.backends.backend_cairo] <- ../../../../../../usr/lib64/python3.11/site-packages/matplotlib/tests/test_getattr.py 
[ 5957s] test_getattr.py::test_getattr[matplotlib.backends.backend_gtk3] <- ../../../../../../usr/lib64/python3.11/site-packages/matplotlib/tests/test_getattr.py qemu-kvm: terminating on signal 15 from pid 68319 ()

Expected outcome

tests should pass

Additional information

this has worked with earlier versions of gc and xkeyboard-config

Operating system

openSUSE Tumbleweed

Matplotlib Version

3.10.7

Matplotlib Backend

differs, gtk3 version 3.24.51

Python version

3.11.14

Jupyter version

none

Installation

from source (.tar.gz)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions