#NEWLINE# def tearDown( self ) : #NEWLINE# #INDENT# if isinstance ( self . _dt_test . examples [ 0 ] , IPExample ) : #NEWLINE# #INDENT# self . _dt_test . globs = self . _dt_test_globs_ori #NEWLINE# _ip . user_ns . protect_underscore = False #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# super ( DocTestCase , self ) . tearDown ( ) #NEWLINE# #UNINDENT# except AttributeError as exc : #NEWLINE# #INDENT# if ( exc . args [ 0 ] != self . _result_var ) : #NEWLINE# #INDENT# raise