tests: improve clearing tracebacks from Qubes* objects
Clear also tracebacks of chained exceptions.
This commit is contained in:
parent
f33eca1e3f
commit
35c66987ab
@ -391,7 +391,10 @@ class QubesTestCase(unittest.TestCase):
|
|||||||
continue
|
continue
|
||||||
if exc_info is None:
|
if exc_info is None:
|
||||||
continue
|
continue
|
||||||
traceback.clear_frames(exc_info[2])
|
ex = exc_info[1]
|
||||||
|
while ex is not None:
|
||||||
|
traceback.clear_frames(ex.__traceback__)
|
||||||
|
ex = ex.__context__
|
||||||
|
|
||||||
def cleanup_gc(self):
|
def cleanup_gc(self):
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
Loading…
Reference in New Issue
Block a user