#NEWLINE# def test_enable_file( self ) : #NEWLINE# #INDENT# with temporary_filename ( ) as filename : #NEWLINE# #INDENT# self . check_fatal_error ( "\nimport faulthandler\noutput = open({filename}, 'wb')\nfaulthandler.enable(output)\nfaulthandler._sigsegv()\n" . strip ( ) . format ( filename = repr ( filename ) ) , 4 , 'Segmentation fault' , filename = filename )