Bug 2359811

Summary: pygobject3 fails to build with Python 3.14: Failed TestPythonReferenceCounting and TestRefCountsIntrospected and TestRefCountsNonIntrospected
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: pygobject3Assignee: GNOME SIG Unassigned <gnome-sig>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amigadave, gnome-sig, kalevlember, ksurma, mhroncok, otaylor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pygobject3-3.51.0-2.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-27 22:04:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407    

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.