def teardown_module(): stop_reactor()
def teardownClass(cls): stop_reactor() cls.httpd.stop()
def teardown(): "shut down beanstalkd" stop_reactor() # required per nose docs on Twisted support logger = logging.getLogger("teardown") logger.info("terminating beanstalkd at %i" % process.pid) os.kill(process.pid, signal.SIGTERM)
def tearDownModule(): """ Tear down functions for module level """ stop_reactor()