3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +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:
Andrew Zaborowski 2017-09-30 04:28:16 +02:00 committed by Denis Kenzior
parent 07d07bb2ca
commit 06b8be902e

View File

@ -99,7 +99,9 @@ class AsyncOpAbstract(object):
self._is_completed = False self._is_completed = False
if self._exception is not None: if self._exception is not None:
raise self._exception tmp = self._exception
self._exception = None
raise tmp
class IWDDBusAbstract(AsyncOpAbstract): class IWDDBusAbstract(AsyncOpAbstract):