#NEWLINE# @ contextmanager #NEWLINE# def __test_managers( conf ) : #NEWLINE# #INDENT# app = minimal_app_for_managers ( ) #NEWLINE# managers = manager_factory . build_managers ( app , conf ) #NEWLINE# try : #NEWLINE# #INDENT# ( yield managers ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# for manager in managers . values ( ) : #NEWLINE# #INDENT# manager . shutdown ( )