mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 19:12:33 +01:00
autotests: Reset _exception after _wait_for_async_op
We need to reset self._exception after _wait_for_async_op raises an exception, otherwise _wait_for_async_op will report that exception for every future operation (this wasn't an issue when an exception always meant that the test was failing and objects were torn down anyway)
This commit is contained in:
parent
07d07bb2ca
commit
06b8be902e
@ -99,7 +99,9 @@ class AsyncOpAbstract(object):
|
||||
|
||||
self._is_completed = False
|
||||
if self._exception is not None:
|
||||
raise self._exception
|
||||
tmp = self._exception
|
||||
self._exception = None
|
||||
raise tmp
|
||||
|
||||
|
||||
class IWDDBusAbstract(AsyncOpAbstract):
|
||||
|
Loading…
Reference in New Issue
Block a user