#NEWLINE# @ pytest . fixture ( params = [ ( '42' , 42 , None ) , ( '-42' , ( - 42 ) , None ) , ( '-0042' , ( - 42 ) , None ) , ( '' , None , ValueError ) , ( 'foo' , None , ValueError ) , ( '42.42' , None , ValueError ) , ( '0x0a3' , None , ValueError ) , ( None , None , TypeError ) ] ) #NEWLINE# def from_xml_fixture( self , request ) : #NEWLINE# #INDENT# ( str_value , expected_value , expected_exception ) = request . param #NEWLINE# return ( self , expected_value , expected_exception )