<s> import Gaffer <EOL> import GafferTest <EOL> class ApplicationTest ( GafferTest . TestCase ) : <EOL> def testTaskSchedulerInitDoesntSuppressExceptions ( self ) : <EOL> def f ( ) : <EOL> import Gaffer . _Gaffer as _Gaffer <EOL> with _Gaffer . _tbb_task_scheduler_init ( _Gaffer . _tbb_task_scheduler_init . automatic ) : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> self . assertRaises ( Exception , f ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
