tests: remove VM reference from QubesVMError

Yet another place wheren object references are leaked.
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-21 16:49:20 +02:00
parent a972c61914
commit 0b7aa546c6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -395,6 +395,8 @@ class QubesTestCase(unittest.TestCase):
continue continue
ex = exc_info[1] ex = exc_info[1]
while ex is not None: while ex is not None:
if isinstance(ex, qubes.exc.QubesVMError):
ex.vm = None
traceback.clear_frames(ex.__traceback__) traceback.clear_frames(ex.__traceback__)
ex = ex.__context__ ex = ex.__context__