#NEWLINE# def test_convert_infs( ) : #NEWLINE# #INDENT# arr = np . array ( [ 'inf' , 'inf' , 'inf' ] , dtype = 'O' ) #NEWLINE# result = lib . maybe_convert_numeric ( arr , set ( ) , False ) #NEWLINE# assert ( result . dtype == np . float64 ) #NEWLINE# arr = np . array ( [ '-inf' , '-inf' , '-inf' ] , dtype = 'O' ) #NEWLINE# result = lib . maybe_convert_numeric ( arr , set ( ) , False ) #NEWLINE# assert ( arr . dtype == np . float64 )