Skip to content

Commit fbafa55

Browse files
committed
tests: add missing test cleanup
skip_kernel_validation_patch was not stopped, and keeps reference to some objects.
1 parent 9196c9a commit fbafa55

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qubes/tests/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ def kernel_validator_patched(obj, key, value):
527527
)
528528
self.skip_kernel_validation_patch.start()
529529

530+
def tearDown(self):
531+
self.skip_kernel_validation_patch.stop()
532+
super().tearDown()
533+
530534
def cleanup_gc(self):
531535
# remove cached references to Qubes() object
532536
qubes.api.internal.SystemInfoCache.cache_for_app = None

0 commit comments

Comments
 (0)