Fix event test errors when GTK is not installed
- For the
minimal-meson
build, only test PyGObject. - Allow event tests to run without GTK installed.
For later:
The test case tests/test_object_marshaling.py::TestVFuncsWithFloatingArg::test_vfunc_in_object_transfer_none_with_floating
(or test_vfunc_in_object_transfer_full_with_floating
, it's hard to tell from the test output) fails because:
(moo:4647): GLib-GObject-CRITICAL **: 13:44:09.656: A floating object
GInitiallyUnowned 0x556213dd1bd0 was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
This only happens in the minimal-meson test. I suppose because GLib is compiled as subproject with debug enabled.
Edited by Arjan Molenaar