From 673dc624563fc7e4ed4606612ac6d8ac6c10d425 Mon Sep 17 00:00:00 2001 From: "Richard T. Guy" Date: Thu, 24 Oct 2013 20:29:36 -0700 Subject: [PATCH] TST: Fixed int32/int64 problem in csv parser tests --- pandas/io/tests/test_parsers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandas/io/tests/test_parsers.py b/pandas/io/tests/test_parsers.py index 66730f255eb1d..84736f16e7cba 100644 --- a/pandas/io/tests/test_parsers.py +++ b/pandas/io/tests/test_parsers.py @@ -1274,8 +1274,8 @@ def test_header_multiindex_common_format(self): tm.assert_frame_equal(df.reset_index(drop=True),result) # malformed case 1 - expected = DataFrame(np.array([[ 2, 3, 4, 5, 6], - [ 8, 9, 10, 11, 12]]), + expected = DataFrame(np.array([[2, 3, 4, 5, 6], + [8, 9, 10, 11, 12]], dtype='int64'), index=Index([1, 7]), columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('r'), u('s'), u('t'), u('u'), u('v')]], labels=[[0, 0, 1, 2, 2], [0, 1, 2, 3, 4]], @@ -1290,8 +1290,8 @@ def test_header_multiindex_common_format(self): tm.assert_frame_equal(expected,result) # malformed case 2 - expected = DataFrame(np.array([[ 2, 3, 4, 5, 6], - [ 8, 9, 10, 11, 12]]), + expected = DataFrame(np.array([[2, 3, 4, 5, 6], + [8, 9, 10, 11, 12]], dtype='int64'), index=Index([1, 7]), columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('r'), u('s'), u('t'), u('u'), u('v')]], labels=[[0, 0, 1, 2, 2], [0, 1, 2, 3, 4]], @@ -1307,7 +1307,7 @@ def test_header_multiindex_common_format(self): # mi on columns and index (malformed) expected = DataFrame(np.array([[ 3, 4, 5, 6], - [ 9, 10, 11, 12]]), + [ 9, 10, 11, 12]], dtype='int64'), index=MultiIndex(levels=[[1, 7], [2, 8]], labels=[[0, 1], [0, 1]]), columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('s'), u('t'), u('u'), u('v')]],