python-dbus-next icon indicating copy to clipboard operation
python-dbus-next copied to clipboard

glib async methods return list for single result

Open mpnordland opened this issue 3 years ago • 1 comments

fixes #108 The async method calls on the glib.ProxyInterface class lacked the ability to unpack a single result while the sync version did do that. This commit moves unpacking code to the async version so both will behave correctly.

mpnordland avatar Dec 22 '21 05:12 mpnordland

While I feel the current test suite is sufficient to show there are not regressions from this change, I think it would be helpful to add tests that specifically check the asynchronous calls so that changes aren't made to just the synchronous calls that should apply to both. I attempted to write such tests, but I ran into a segfault with GLib that I am too tired/ignorant to know how to solve.

mpnordland avatar Dec 22 '21 05:12 mpnordland