Skip to content

Commit b20fe15

Browse files
ginggsjreback
authored andcommitted
Fix test__get_dtype test expecting little-endian (#20662)
Similar to #14832, use = (native) instead of < (little-endian)
1 parent ad5affb commit b20fe15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/dtypes/test_common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ def test_is_offsetlike():
570570
(pd.CategoricalIndex(['a', 'b']), CategoricalDtype(['a', 'b'])),
571571
(CategoricalDtype(), CategoricalDtype()),
572572
(CategoricalDtype(['a', 'b']), CategoricalDtype()),
573-
(pd.DatetimeIndex([1, 2]), np.dtype('<M8[ns]')),
574-
(pd.DatetimeIndex([1, 2]).dtype, np.dtype('<M8[ns]')),
573+
(pd.DatetimeIndex([1, 2]), np.dtype('=M8[ns]')),
574+
(pd.DatetimeIndex([1, 2]).dtype, np.dtype('=M8[ns]')),
575575
('<M8[ns]', np.dtype('<M8[ns]')),
576576
('datetime64[ns, Europe/London]', DatetimeTZDtype('ns', 'Europe/London')),
577577
(pd.SparseSeries([1, 2], dtype='int32'), np.dtype('int32')),

0 commit comments

Comments
 (0)