Przeglądaj źródła

tests: remove VM reference from QubesVMError

Yet another place wheren object references are leaked.
Marek Marczykowski-Górecki 5 lat temu
rodzic
commit
0b7aa546c6
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      qubes/tests/__init__.py

+ 2 - 0
qubes/tests/__init__.py

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