#NEWLINE# def assertNoOutput( self , stream ) : #NEWLINE# #INDENT# 'Utility assertion: assert that the given stream is empty' #NEWLINE# if ( sys . platform == 'win32' ) : #NEWLINE# #INDENT# stream = [ e for e in stream . splitlines ( ) if ( not e . startswith ( 'warning: Not importing directory' ) ) ] #NEWLINE# #UNINDENT# self . assertEqual ( len ( self ) , 0 , ( "Stream should be empty: actually contains '%s'" % stream ) )