#NEWLINE# def test_infer_freq( self ) : #NEWLINE# #INDENT# for freq in [ 'D' , '3D' , '-3D' , 'H' , '2H' , '-2H' , 'T' , '2T' , 'S' , '-3S' ] : #NEWLINE# #INDENT# idx = pd . timedelta_range ( '1' , freq = freq , periods = 10 ) #NEWLINE# result = pd . TimedeltaIndex ( idx . asi8 , freq = 'infer' ) #NEWLINE# tm . assert_index_equal ( idx , result ) #NEWLINE# self . assertEqual ( result . freq , freq )