def tearDown(self): try: Tasklet.yield_() #this make sure that everything gets a change to exit before we start the next test logging.debug("tearDown %s, tasklet count #%d", self, Tasklet.count()) except: pass