Bug 2359811 - pygobject3 fails to build with Python 3.14: Failed TestPythonReferenceCounting and TestRefCountsIntrospected and TestRefCountsNonIntrospected
Summary: pygobject3 fails to build with Python 3.14: Failed TestPythonReferenceCountin...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-04-15 17:30 UTC by Karolina Surma
Modified: 2025-08-27 22:04 UTC (History)
6 users (show)

Fixed In Version: pygobject3-3.51.0-2.fc43
Clone Of:
Environment:
Last Closed: 2025-08-27 22:04:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME pygobject issues 694 0 None opened Python refcounting changed since 3.14.0a7 resulting in test failures 2025-05-14 10:27:54 UTC

Description Karolina Surma 2025-04-15 17:30:43 UTC
pygobject3 fails to build with Python 3.14.0a7.

FAILED tests/test_gobject.py::TestPythonReferenceCounting::test_new_instance_has_two_refs
FAILED tests/test_gobject.py::TestPythonReferenceCounting::test_new_instance_has_two_refs_using_gobject_new
FAILED tests/test_gobject.py::TestPythonReferenceCounting::test_new_subclass_instance_has_two_refs
FAILED tests/test_gobject.py::TestPythonReferenceCounting::test_new_subclass_instance_has_two_refs_using_gobject_new
FAILED tests/test_object_marshaling.py::TestVFuncsWithObjectArg::test_vfunc_self_arg_ref_count
FAILED tests/test_properties.py::TestCPropsAccessor::test_held_object_ref_count_setter
FAILED tests/test_signal.py::TestRefCountsNonIntrospected::test_callback_ref_count_del
FAILED tests/test_signal.py::TestRefCountsNonIntrospected::test_callback_ref_count_disconnect
FAILED tests/test_signal.py::TestRefCountsNonIntrospected::test_callback_ref_count_disconnect_by_func
FAILED tests/test_signal.py::TestRefCountsNonIntrospected::test_user_data_ref_count
FAILED tests/test_signal.py::TestRefCountsIntrospected::test_callback_ref_count_del
FAILED tests/test_signal.py::TestRefCountsIntrospected::test_callback_ref_count_disconnect
FAILED tests/test_signal.py::TestRefCountsIntrospected::test_callback_ref_count_disconnect_by_func
FAILED tests/test_signal.py::TestRefCountsIntrospected::test_user_data_ref_count
==== 14 failed, 1472 passed, 25 skipped, 10 xfailed, 132 warnings in 12.97s ====
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――


Summary of Failures:

1/1 pygobject-test-suite FAIL            13.98s   exit status 1


https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08905281-pygobject3/

For all our attempts to build pygobject3 with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/pygobject3/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.


Note You need to log in before you can comment on or make changes to this bug.