Skip to content

Commit 673dc62

Browse files
committed
TST: Fixed int32/int64 problem in csv parser tests
1 parent a96cd66 commit 673dc62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/io/tests/test_parsers.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1274,8 +1274,8 @@ def test_header_multiindex_common_format(self):
12741274
tm.assert_frame_equal(df.reset_index(drop=True),result)
12751275

12761276
# malformed case 1
1277-
expected = DataFrame(np.array([[ 2, 3, 4, 5, 6],
1278-
[ 8, 9, 10, 11, 12]]),
1277+
expected = DataFrame(np.array([[2, 3, 4, 5, 6],
1278+
[8, 9, 10, 11, 12]], dtype='int64'),
12791279
index=Index([1, 7]),
12801280
columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('r'), u('s'), u('t'), u('u'), u('v')]],
12811281
labels=[[0, 0, 1, 2, 2], [0, 1, 2, 3, 4]],
@@ -1290,8 +1290,8 @@ def test_header_multiindex_common_format(self):
12901290
tm.assert_frame_equal(expected,result)
12911291

12921292
# malformed case 2
1293-
expected = DataFrame(np.array([[ 2, 3, 4, 5, 6],
1294-
[ 8, 9, 10, 11, 12]]),
1293+
expected = DataFrame(np.array([[2, 3, 4, 5, 6],
1294+
[8, 9, 10, 11, 12]], dtype='int64'),
12951295
index=Index([1, 7]),
12961296
columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('r'), u('s'), u('t'), u('u'), u('v')]],
12971297
labels=[[0, 0, 1, 2, 2], [0, 1, 2, 3, 4]],
@@ -1307,7 +1307,7 @@ def test_header_multiindex_common_format(self):
13071307

13081308
# mi on columns and index (malformed)
13091309
expected = DataFrame(np.array([[ 3, 4, 5, 6],
1310-
[ 9, 10, 11, 12]]),
1310+
[ 9, 10, 11, 12]], dtype='int64'),
13111311
index=MultiIndex(levels=[[1, 7], [2, 8]],
13121312
labels=[[0, 1], [0, 1]]),
13131313
columns=MultiIndex(levels=[[u('a'), u('b'), u('c')], [u('s'), u('t'), u('u'), u('v')]],

0 commit comments

Comments
 (0)