#NEWLINE# def test_nanmean_overflow( self ) : #NEWLINE# #INDENT# from distutils.version import LooseVersion #NEWLINE# if ( LooseVersion ( np . __version__ ) >= '1.9.0' ) : #NEWLINE# #INDENT# for a in [ ( 2 ** 55 ) , ( - ( 2 ** 55 ) ) , 20150515061816532 ] : #NEWLINE# #INDENT# s = Series ( np_result , index = range ( 500 ) , dtype = np . int64 ) #NEWLINE# result = s . mean ( ) #NEWLINE# np_result = s . values . mean ( ) #NEWLINE# self . assertEqual ( result , a ) #NEWLINE# self . assertEqual ( result , np_result ) #NEWLINE# self . assertTrue ( ( result . dtype == np . float64 ) )