def tearDown(self): removeTestTempDir(self.root)
def tearDownClass(cls): # TODO: use addClassCleanup rather than tearDownClass in Python 3.8 # to keep the addition and removal together and make it more robust removeTestTempDir(cls.root)
def tearDown(self): removeTestTempDir(self.tmpdir)
def tearDown(self): removeTestTempDir(self.root) del self.hspMap
def tearDownClass(cls): # Clean up any lingering SQLAlchemy engines/connections # so they're closed before we shut down the server. gc.collect() cls.server.stop() removeTestTempDir(cls.root)