def tearDown(self): stop_ioloop() import shutil testing.tearDown() self.db.close() shutil.rmtree(self.tmpdir)