tests: Ensure objects are free'ed at the end of tests

The objects may not be garbage collected otherwise.
This commit is contained in:
Benjamin Berg
2019-12-05 15:49:43 +01:00
parent d435fc7c2c
commit 07c8481bf6
3 changed files with 10 additions and 0 deletions

View File

@@ -83,6 +83,8 @@ class VirtualImage(unittest.TestCase):
@classmethod
def tearDownClass(cls):
shutil.rmtree(cls.tmpdir)
del cls.dev
del cls.ctx
def setUp(self):
self.dev.open_sync()