#NEWLINE# def test_directory_error( self ) : #NEWLINE# #INDENT# with temp_dir ( ) as script_dir : #NEWLINE# #INDENT# msg = ( "can't find '__main__' module in %r" % script_dir ) #NEWLINE# self . _check_import_error ( script_dir , msg )