#NEWLINE# def testRmtreeNonExistingDir( self ) : #NEWLINE# #INDENT# directory = 'nonexisting' #NEWLINE# self . assertRaises ( IOError , self . shutil . rmtree , directory ) #NEWLINE# try : #NEWLINE# #INDENT# self . shutil . rmtree ( directory , ignore_errors = True ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# self . fail ( 'rmtree raised despite ignore_errors True' )