3.38.0: test suite is failing
Does it need to be run now over dbu-run-session? Just checked and 3.36.1 passes test suite without any problems.
Source code configured with:
%meson \
-D pycairo=enabled \
-D python=%__python3 \
-D tests=true \
+ xvfb-run -a /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/1 pygobject-test-suite FAIL 15.22s (exit status 1)
Ok: 0
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
1/1 pygobject-test-suite FAIL 15.22s (exit status 1)
--- command ---
18:25:36 GI_TYPELIB_PATH='/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/tests' PYTHONPATH='/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/tests/..' LD_LIBRARY_PATH='/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/tests' TESTS_BUILDDIR='/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/tests' /usr/bin/python3 /home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/tests/runtests.py
--- stdout ---
============================= test session starts ==============================
platform linux -- Python 3.8.3, pytest-4.6.9, py-1.8.0, pluggy-0.13.1
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/.hypothesis/examples')
rootdir: /home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0
plugins: forked-1.1.1, mock-1.10.4, expect-1.1.0, hypothesis-4.23.8, xdist-1.31.0, httpbin-0.3.0, cov-2.8.1, timeout-1.3.4, rerunfailures-8.0, flaky-3.6.1
collected 1468 items
../tests/test_atoms.py ...ss.. [ 0%]
../tests/test_cairo.py .............................. [ 2%]
../tests/test_docstring.py ...............x. [ 3%]
../tests/test_error.py ............... [ 4%]
../tests/test_everything.py ......................x..................... [ 7%]
........................................................................ [ 12%]
.......... [ 13%]
../tests/test_fields.py ................ [ 14%]
../tests/test_gdbus.py .........F.. [ 15%]
../tests/test_generictreemodel.py ................... [ 16%]
../tests/test_gi.py .................................................... [ 20%]
..........................................................s............. [ 24%]
.............................s.......................................... [ 29%]
...................................s..ss.....s...........s.............. [ 34%]
........................................................................ [ 39%]
...........................................................x............ [ 44%]
................ [ 45%]
../tests/test_gio.py ..................... [ 47%]
../tests/test_glib.py ................x.... [ 48%]
../tests/test_gobject.py ............................................... [ 51%]
..... [ 52%]
../tests/test_gtk_template.py ...................... [ 53%]
../tests/test_gtype.py ................ [ 54%]
../tests/test_import_machinery.py ............ [ 55%]
../tests/test_interface.py .. [ 55%]
../tests/test_internal_api.py ............. [ 56%]
../tests/test_iochannel.py ................... [ 57%]
../tests/test_mainloop.py .. [ 57%]
../tests/test_object_marshaling.py ............................ [ 59%]
../tests/test_option.py .......... [ 60%]
../tests/test_ossig.py .......... [ 61%]
../tests/test_overrides_gdk.py ........s..........s.. [ 62%]
../tests/test_overrides_gdkpixbuf.py .. [ 62%]
../tests/test_overrides_gio.py ............. [ 63%]
../tests/test_overrides_glib.py .s......s...................... [ 65%]
../tests/test_overrides_gobject.py ......................... [ 67%]
../tests/test_overrides_gtk.py ........................................s [ 70%]
..s.....x.............................................................. [ 75%]
../tests/test_overrides_pango.py ....... [ 75%]
../tests/test_properties.py ............................................ [ 78%]
............x...........................x...................... [ 82%]
../tests/test_pycapi.py . [ 82%]
../tests/test_pygtkcompat.py .................................. [ 85%]
../tests/test_repository.py ........................... [ 87%]
../tests/test_resulttuple.py ........ [ 87%]
../tests/test_signal.py ................x................x.............. [ 90%]
..........................................s............................. [ 95%]
.......x....x.. [ 96%]
../tests/test_source.py ......................... [ 98%]
../tests/test_subprocess.py ..x........ [ 99%]
../tests/test_thread.py . [ 99%]
../tests/test_typeclass.py ...... [ 99%]
../tests/test_unknown.py ... [100%]
=================================== FAILURES ===================================
____________________ TestGDBusClient.test_python_calls_sync ____________________
self = <tests.test_gdbus.TestGDBusClient testMethod=test_python_calls_sync>
def test_python_calls_sync(self):
# single value return tuples get unboxed to the one element
result = self.dbus_proxy.ListNames('()')
self.assertTrue(isinstance(result, list))
self.assertTrue(len(result) > 1)
self.assertTrue('org.freedesktop.DBus' in result)
result = self.dbus_proxy.GetNameOwner('(s)', 'org.freedesktop.DBus')
self.assertEqual(type(result), type(''))
# empty return tuples get unboxed to None
self.assertEqual(self.dbus_proxy.ReloadConfig('()'), None)
# multiple return values remain a tuple; unfortunately D-BUS itself
# does not have any method returning multiple results, so try talking
# to notification-daemon (and don't fail the test if it does not exist)
try:
> nd = Gio.DBusProxy.new_sync(self.bus,
Gio.DBusProxyFlags.NONE, None,
'org.freedesktop.Notifications',
'/org/freedesktop/Notifications',
'org.freedesktop.Notifications',
None)
E gi.repository.GLib.GError: g-dbus-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Process org.freedesktop.Notifications received signal 11 (26)
../tests/test_gdbus.py:154: Error
======== 1 failed, 1439 passed, 16 skipped, 12 xfailed in 13.48 seconds ========
-------
Full log written to /home/tkloczko/rpmbuild/BUILD/pygobject-3.38.0/x86_64-redhat-linux-gnu/meson-logs/testlog.txt