#NEWLINE# def test_regression_244( self ) : #NEWLINE# #INDENT# 'fft returns wrong result with axes parameter.' #NEWLINE# x = numpy . ones ( ( 4 , 4 , 2 ) ) #NEWLINE# y = fft2 ( x , shape = ( 8 , 8 ) , axes = ( ( - 3 ) , ( - 2 ) ) ) #NEWLINE# y_r = numpy . fft . fftn ( x , s = ( 8 , 8 ) , axes = ( ( - 3 ) , ( - 2 ) ) ) #NEWLINE# assert_array_almost_equal ( y , y_r )