Skip to content

Commit 7e9026d

Browse files
juricastjreback
authored andcommitted
BUG #GH10425 test_categorical big-endian fix
whatsnew modified
1 parent af3a762 commit 7e9026d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v0.17.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ Bug Fixes
7979
- Bug in ``ExcelReader`` when worksheet is empty (:issue:`6403`)
8080
- Bug in ``Table.select_column`` where name is not preserved (:issue:`10392`)
8181
- Bug in ``DataFrame.interpolate`` with ``axis=1`` and ``inplace=True`` (:issue:`10395`)
82+
- Bug in ``test_categorical`` on big-endian builds (:issue:`10425`)

pandas/tests/test_categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2883,7 +2883,7 @@ def test_to_records(self):
28832883
# this coerces
28842884
result = df.to_records()
28852885
expected = np.rec.array([(0, 'a'), (1, 'b'), (2, 'c')],
2886-
dtype=[('index', '<i8'), ('0', 'O')])
2886+
dtype=[('index', '=i8'), ('0', 'O')])
28872887
tm.assert_almost_equal(result, expected)
28882888

28892889
def test_numeric_like_ops(self):

0 commit comments

Comments
 (0)