#NEWLINE# def pytest_report_header( config ) : #NEWLINE# #INDENT# lines = [ ] #NEWLINE# if ( config . option . debug or config . option . traceconfig ) : #NEWLINE# #INDENT# lines . append ( ( 'using: pytest-%s pylib-%s' % ( pytest . __version__ , py . __version__ ) ) ) #NEWLINE# verinfo = getpluginversioninfo ( config ) #NEWLINE# if verinfo : #NEWLINE# #INDENT# lines . extend ( verinfo ) #NEWLINE# #UNINDENT# #UNINDENT# if config . option . traceconfig : #NEWLINE# #INDENT# lines . append ( 'active plugins:' ) #NEWLINE# items = config . pluginmanager . list_name_plugin ( ) #NEWLINE# for ( name , plugin ) in items : #NEWLINE# #INDENT# if hasattr ( plugin , '__file__' ) : #NEWLINE# #INDENT# r = plugin . __file__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# r = repr ( plugin ) #NEWLINE# #UNINDENT# lines . append ( ( '    %-20s: %s' % ( name , r ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return lines