fix_big-endian_tests
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 29 May 2018 13:50:59 +0000 (14:50 +0100)
committerGraham Inggs <ginggs@debian.org>
Tue, 29 May 2018 13:50:59 +0000 (14:50 +0100)
Gbp-Pq: Name fix_big-endian_tests.patch

pandas/tests/dtypes/test_cast.py
pandas/tests/dtypes/test_common.py
pandas/tests/frame/test_convert_to.py
pandas/tests/indexes/period/test_formats.py

index 491de261f02a61ac5b0b70201e8fbff069fe304b..0b425a08c2bd5dc5898d85560ae27e50db420f08 100644 (file)
@@ -189,9 +189,9 @@ class TestInferDtype(object):
          (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),
index e0be34b14a97de5f809722324183c1293fc44ba5..45f90f2222b852b89818a433a99964c581713851 100644 (file)
@@ -551,8 +551,8 @@ def test_is_complex_dtype():
     (pd.CategoricalIndex(['a', 'b']), CategoricalDtype(['a', 'b'])),
     (CategoricalDtype(), CategoricalDtype()),
     (CategoricalDtype(['a', 'b']), CategoricalDtype()),
-    (pd.DatetimeIndex([1, 2]), np.dtype('<M8[ns]')),
-    (pd.DatetimeIndex([1, 2]).dtype, np.dtype('<M8[ns]')),
+    (pd.DatetimeIndex([1, 2]), np.dtype('=M8[ns]')),
+    (pd.DatetimeIndex([1, 2]).dtype, np.dtype('=M8[ns]')),
     ('<M8[ns]', np.dtype('<M8[ns]')),
     ('datetime64[ns, Europe/London]', DatetimeTZDtype('ns', 'Europe/London')),
     (pd.SparseSeries([1, 2], dtype='int32'), np.dtype('int32')),
index 7d2d18db8d41ca975aa4e4d1dcaca9905ffdcef6..fb69b7540f9078e871ae5e93c9a06b0f2e6f86e4 100644 (file)
@@ -147,7 +147,7 @@ class TestDataFrameConvertTo(TestData):
         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)
 
index 533481ce051f754b0346a2edef2f5db83e9ebdd9..81f5b33c0505ce363c8327038f522246f9003003 100644 (file)
@@ -12,7 +12,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)
@@ -22,14 +22,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)