#NEWLINE# def make_temp_dir( self , dir_ = None ) : #NEWLINE# #INDENT# temp_dir = tempfile . mkdtemp ( prefix = ( 'tmp-%s-' % self . __class__ . __name__ ) , dir = dir_ ) #NEWLINE# def tear_down( ) : #NEWLINE# #INDENT# shutil . rmtree ( temp_dir ) #NEWLINE# #UNINDENT# self . _setup_stack . add_teardown ( tear_down ) #NEWLINE# return temp_dir