File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ PyType_Spec SdBusInterfaceType = {
355355static int set_dbus_error_from_python_exception (sd_bus_error * ret_error ) {
356356 PyObject * current_exception = PyErr_Occurred ();
357357 if (NULL == current_exception ) {
358- return 0 ;
358+ goto fail ;
359359 }
360360#ifdef Py_LIMITED_API
361361 PyObject * dbus_error_bytes CLEANUP_PY_OBJECT = NULL ;
Original file line number Diff line number Diff line change @@ -162,3 +162,13 @@ async def test_property_setter_derived_error(self) -> None:
162162 )
163163
164164 await self .test_object_connection .hello_world ()
165+
166+ async def test_property_callback_error (self ) -> None :
167+ interface = self .test_object ._activated_interfaces [0 ]
168+ interface .property_get_dict .pop (b'DerriveErrSettable' )
169+
170+ with self .assertRaises (DbusFailedError ):
171+ await wait_for (
172+ self .test_object_connection .derrive_err_settable ,
173+ timeout = 1 ,
174+ )
You can’t perform that action at this time.
0 commit comments