From 0b7aa546c6a7cf3b744860e7763f05d1b01a8360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 21 Oct 2018 16:49:20 +0200 Subject: [PATCH] tests: remove VM reference from QubesVMError Yet another place wheren object references are leaked. --- qubes/tests/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index b66a4ee7..991692bb 100644 --- a/qubes/tests/__init__.py +++ b/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__