You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dbusmock mockup of bluez appears to implement PairDevice(), a dbusmock-specific convenience method, which changed from 3 to 2 arguments in 63264e1. Unfortunately, dbusmock/templates/bluez5.py still passes the third (class) argument, leading to the gnome-bluetooth test suite failing, even after applying https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/merge_requests/175:
1703969200.285 GetManagedObjects
1703969200.285 GetAll /org/freedesktop/UPower org.freedesktop.UPower
1703969200.286 EnumerateDevices
1703969200.287 Pair
1703969200.287 Pair raised: org.freedesktop.DBus.Error.InvalidArgs: Invalid arguments: Fewer items found in D-Bus signature than in Python arguments
(I think it would also be good if any dbusmock-specific methods could be renamed to MockPairDevice() or similar to make it clearer that they are not part of the real API that is being mocked-up.)
The text was updated successfully, but these errors were encountered:
smcv
added a commit
to smcv/python-dbusmock
that referenced
this issue
Dec 30, 2023
The third (device class) argument to PairDevice was removed in 0.30.1,
but this call to it was still passing a third parameter, resulting in
an error from dbus-python whenever Pair() was called. This caused a
unit test regression in gnome-bluetooth.
Fixes: 63264e1 "bluez5: Clean up static default properties, re-drop PairDevice class_ parameter"
Resolves: martinpitt#193
Bug-Debian: https://bugs.debian.org/1057564
Signed-off-by: Simon McVittie <smcv@debian.org>
The third (device class) argument to PairDevice was removed in 0.30.1,
but this call to it was still passing a third parameter, resulting in
an error from dbus-python whenever Pair() was called. This caused a
unit test regression in gnome-bluetooth.
Fixes: 63264e1 "bluez5: Clean up static default properties, re-drop PairDevice class_ parameter"
Fixes#193
Bug-Debian: https://bugs.debian.org/1057564
Signed-off-by: Simon McVittie <smcv@debian.org>
The dbusmock mockup of bluez appears to implement
PairDevice()
, a dbusmock-specific convenience method, which changed from 3 to 2 arguments in 63264e1. Unfortunately,dbusmock/templates/bluez5.py
still passes the third (class) argument, leading to the gnome-bluetooth test suite failing, even after applying https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/merge_requests/175:(I think it would also be good if any dbusmock-specific methods could be renamed to
MockPairDevice()
or similar to make it clearer that they are not part of the real API that is being mocked-up.)The text was updated successfully, but these errors were encountered: