#NEWLINE# @ skipIf ( ( not is_pandas ) , 'pandas does not work in PyPy.' ) #NEWLINE# def test_pandas_datetime_types( self ) : #NEWLINE# #INDENT# 'should convert to millis\n        ' #NEWLINE# idx = pd . date_range ( '2001-1-1' , '2001-1-5' ) #NEWLINE# df = pd . DataFrame ( { #NEWLINE# #INDENT# 'vals' : idx , #NEWLINE# #UNINDENT# } , index = idx ) #NEWLINE# serialized = self . serialize ( { #NEWLINE# #INDENT# 'vals' : df . vals , #NEWLINE# 'idx' : df . index , #NEWLINE# #UNINDENT# } ) #NEWLINE# deserialized = self . deserialize ( serialized ) #NEWLINE# baseline = { #NEWLINE# #INDENT# 'vals' : [ 978307200000 , 978393600000 , 978480000000 , 978566400000 , 978652800000 ] , #NEWLINE# 'idx' : [ 978307200000 , 978393600000 , 978480000000 , 978566400000 , 978652800000 ] , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( deserialized == baseline )