#NEWLINE# def tearDown( self ) : #NEWLINE# #INDENT# super ( BaseZMQPubCase , self ) . tearDown ( ) #NEWLINE# failures = [ ] #NEWLINE# for ( k , v ) in self . io_loop . _handlers . iteritems ( ) : #NEWLINE# #INDENT# if ( self . _start_handlers . get ( k ) != v ) : #NEWLINE# #INDENT# failures . append ( ( k , v ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( failures ) > 0 ) : #NEWLINE# #INDENT# raise Exception ( 'FDs still attached to the IOLoop: {0}' . format ( failures ) )