#NEWLINE# def read_pickles( self , version ) : #NEWLINE# #INDENT# if ( not is_platform_little_endian ( ) ) : #NEWLINE# #INDENT# raise nose . SkipTest ( 'known failure on non-little endian' ) #NEWLINE# #UNINDENT# pth = tm . get_data_path ( 'legacy_pickle/{0}' . format ( str ( version ) ) ) #NEWLINE# n = 0 #NEWLINE# for f in os . listdir ( pth ) : #NEWLINE# #INDENT# vf = os . path . join ( pth , f ) #NEWLINE# data = self . compare ( vf , version ) #NEWLINE# if ( data is None ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( 'series' in data ) : #NEWLINE# #INDENT# if ( 'ts' in data [ 'series' ] ) : #NEWLINE# #INDENT# self . _validate_timeseries ( data [ 'series' ] [ 'ts' ] , self . data [ 'series' ] [ 'ts' ] ) #NEWLINE# self . _validate_frequency ( f [ 'series' ] [ 'ts' ] ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'index' in data ) : #NEWLINE# #INDENT# if ( 'period' in data [ 'index' ] ) : #NEWLINE# #INDENT# self . _validate_periodindex ( data [ 'index' ] [ 'period' ] , self . data [ 'index' ] [ 'period' ] ) #NEWLINE# #UNINDENT# #UNINDENT# n += 1 #NEWLINE# #UNINDENT# assert ( n > 0 ) , 'Pickle files are not tested'