#NEWLINE# def append_skipped( self , report ) : #NEWLINE# #INDENT# if hasattr ( report , 'wasxfail' ) : #NEWLINE# #INDENT# self . _add_simple ( Junit . skipped , 'expected test failure' , report . wasxfail ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( filename , lineno , skipreason ) = report . longrepr #NEWLINE# if skipreason . startswith ( 'Skipped: ' ) : #NEWLINE# #INDENT# skipreason = bin_xml_escape ( skipreason [ 9 : ] ) #NEWLINE# #UNINDENT# self . append ( Junit . skipped ( ( '%s:%s: %s' % ( filename , lineno , skipreason ) ) , type = 'pytest.skip' , message = skipreason ) ) #NEWLINE# #UNINDENT# self . _write_captured_output ( report )