Skip to content

[Bug]: test suite fails against glib 2.88.0 #31398

Closed

Description

@DimStar77

Bug summary

While running the test suite against glib 2.88.0 / gnome 50, the suite fails with

Code for reproduction

Test suite internal to matplotlib

Actual outcome

[  551s] ERROR test_backend_gtk3.py::test_save_figure_return - gi.PyGIDeprecationWarning: GLib.unix_signal_add_full is deprecated; use GLibUnix.signal_add_full instead
[  551s] = 349 passed, 111 skipped, 9170 deselected, 2 xpassed, 1 error in 201.52s (0:03:21) =
[  551s] error: Bad exit status from /var/tmp/rpm-tmp.RQKIHq (%check)

Expected outcome

Test suite passes

Additional information

No response

Operating system

opensuse Tumbleweed

Matplotlib Version

3.10.8

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

None

Activity

  1. DimStar77 commented on Mar 27, 2026

    @DimStar77
    Author

    The issue is self-made inside pygobject/GLib introduced in
    https://gitlab.gnome.org/GNOME/pygobject/-/commit/74e4e0f40a66436a55c72d4a6e6058c1f91a7310

    matplotlib in turn changes all warnings to errors in pytest_configure:

    def pytest_configure(config):
        # config is initialized here rather than in pytest.ini so that `pytest
        # --pyargs matplotlib` (which would not find pytest.ini) works.  The only
        # entries in pytest.ini set minversion (which is checked earlier),
        # testpaths/python_files, as they are required to properly find the tests
        for key, value in [
    …
            ("filterwarnings", "error"),
    

    Might be right to ignore gi's internal deprecation warnings here

  2. timhoffm commented on Mar 27, 2026

    @timhoffm
    Member

    Thanks for the report!

    AFAICS, we do not use unix_signal_add_full directly, so the fix needs to be upstream.

    On the plus side, it's only a warning for now, so does not break user code. We still need to take action to unbreak our tests. The right thing to do is filter the warning inside test_save_figure_return.

  3. QuLogic commented on Mar 30, 2026

    @QuLogic
    Member

    The issue is self-made inside pygobject/GLib introduced in

    Did you report something upstream?

  4. QuLogic commented on Apr 28, 2026

    @QuLogic
    Member
  5. QuLogic commented on May 19, 2026

    @QuLogic
    Member

    And also fixed it upstream https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/545

    Either ask upstream for a new release or backport the patch.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions