#NEWLINE# def cleanup( self ) : #NEWLINE# #INDENT# if ( self . _is_bg_thread is not None ) : #NEWLINE# #INDENT# self . _is_bg_thread . join ( ) #NEWLINE# #UNINDENT# for dbname in self . _db_preload : #NEWLINE# #INDENT# while self . _db_preload [ dbname ] : #NEWLINE# #INDENT# self . dropdb ( self . _db_preload [ dbname ] . pop ( ) )