Skip to content

Fix more tests expecting little-endian #20738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/tests/dtypes/test_cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def testinfer_dtype_from_scalar_errors(self):
(pd.Categorical(list('aabc')), 'category', True),
(pd.Categorical([1, 2, 3]), 'category', True),
(Timestamp('20160101'), np.object_, False),
(np.datetime64('2016-01-01'), np.dtype('<M8[D]'), False),
(np.datetime64('2016-01-01'), np.dtype('=M8[D]'), False),
(pd.date_range('20160101', periods=3),
np.dtype('<M8[ns]'), False),
np.dtype('=M8[ns]'), False),
(pd.date_range('20160101', periods=3, tz='US/Eastern'),
'datetime64[ns, US/Eastern]', True),
(pd.Series([1., 2, 3]), np.float64, False),
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/frame/test_convert_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_to_records_with_unicode_column_names(self):
expected = np.rec.array(
[(0, 1.0)],
dtype={"names": ["index", u"accented_name_é"],
"formats": ['<i8', '<f8']}
"formats": ['=i8', '=f8']}
)
tm.assert_almost_equal(result, expected)

Expand Down
6 changes: 3 additions & 3 deletions pandas/tests/indexes/period/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_to_native_types():

# First, with no arguments.
expected = np.array(['2017-01-01', '2017-01-02',
'2017-01-03'], dtype='<U10')
'2017-01-03'], dtype='=U10')

result = index.to_native_types()
tm.assert_numpy_array_equal(result, expected)
Expand All @@ -23,14 +23,14 @@ def test_to_native_types():
tm.assert_numpy_array_equal(result, expected)

# Make sure slicing works
expected = np.array(['2017-01-01', '2017-01-03'], dtype='<U10')
expected = np.array(['2017-01-01', '2017-01-03'], dtype='=U10')

result = index.to_native_types([0, 2])
tm.assert_numpy_array_equal(result, expected)

# Make sure date formatting works
expected = np.array(['01-2017-01', '01-2017-02',
'01-2017-03'], dtype='<U10')
'01-2017-03'], dtype='=U10')

result = index.to_native_types(date_format='%m-%Y-%d')
tm.assert_numpy_array_equal(result, expected)
Expand Down