mark_tests_working_on_intel_armhf
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 10 Nov 2019 16:35:41 +0000 (16:35 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 10 Nov 2019 16:35:41 +0000 (16:35 +0000)
At least some of these are pd.Timestamp(np.nan) = pd.NaT on x86
but 1970-01-01 on arm* because float NaN -> int is undefined:
https://github.com/numpy/numpy/issues/8325
https://github.com/pandas-dev/pandas/issues/17792
https://github.com/pandas-dev/pandas/issues/26964

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877419 https://bugs.debian.org/877754

Gbp-Pq: Name mark_tests_working_on_intel_armhf.patch

pandas/tests/dtypes/cast/test_downcast.py
pandas/tests/indexes/datetimes/test_datetime.py
pandas/tests/io/pytables/test_pytables.py
pandas/tests/io/test_stata.py
pandas/tests/reductions/test_reductions.py
pandas/tests/series/test_constructors.py

index d574b03a8c7249c57c6d464cc9a709fc44237431..6e2b2fbc81195e4f94dc20cec97e00d9b06fc431 100644 (file)
@@ -68,6 +68,7 @@ def test_downcast_conversion_empty(any_real_dtype):
     tm.assert_numpy_array_equal(result, np.array([], dtype=np.int64))
 
 
+@pytest.mark.intel
 @pytest.mark.parametrize("klass", [np.datetime64, np.timedelta64])
 def test_datetime_likes_nan(klass):
     dtype = klass.__name__ + "[ns]"
index bb3fe7a136204fd51c20589e65bcc6e8540a820d..3ddc9a214b846a4c768881f729d11bffe931829f 100644 (file)
@@ -64,6 +64,7 @@ class TestDatetimeIndex:
         idx2 = pd.date_range(end="2000", periods=periods, freq="S")
         assert len(idx2) == periods
 
+    @pytest.mark.intel
     def test_nat(self):
         assert DatetimeIndex([np.nan])[0] is pd.NaT
 
index d67f2c3b7bd66eb24a59e4bb83884c0e0f4e5cfa..d3f7ddf7f39ad50c5e36e9dd7463f1d070d016a8 100644 (file)
@@ -1097,6 +1097,7 @@ class TestHDFStore(Base):
             check("table", index)
             check("fixed", index)
 
+    @pytest.mark.intel
     @pytest.mark.skipif(
         not is_platform_little_endian(), reason="reason platform is not little endian"
     )
@@ -1129,6 +1130,7 @@ class TestHDFStore(Base):
         ],
     )
     @pytest.mark.parametrize("dtype", ["category", object])
+    @pytest.mark.intel
     def test_latin_encoding(self, dtype, val):
         enc = "latin-1"
         nan_rep = ""
@@ -1308,6 +1310,7 @@ class TestHDFStore(Base):
             # read with KeyError before another write
             df.to_hdf(path, "k2")
 
+    @pytest.mark.intel
     def test_append_frame_column_oriented(self):
 
         with ensure_clean_store(self.path) as store:
@@ -3935,6 +3938,7 @@ class TestHDFStore(Base):
             with pytest.raises(NotImplementedError):
                 store.select("dfs", start=0, stop=5)
 
+    @pytest.mark.intel
     def test_select_filter_corner(self):
 
         df = DataFrame(np.random.randn(50, 100))
index 8b88f8c4da69be0456b532cd4fcf7f6f04285928..d37a16f9e33c5a42bcf3eeb0c1b1d5388d109e4d 100644 (file)
@@ -501,6 +501,7 @@ class TestStata:
             written_and_read_again = self.read_dta(path)
             tm.assert_frame_equal(written_and_read_again.set_index("index"), parsed_114)
 
+    @pytest.mark.intel
     @pytest.mark.parametrize(
         "file", ["dta15_113", "dta15_114", "dta15_115", "dta15_117"]
     )
@@ -1238,6 +1239,7 @@ class TestStata:
                 tm.assert_frame_equal(from_frame, chunk, check_dtype=False)
                 pos += chunksize
 
+    @pytest.mark.intel
     @pytest.mark.parametrize("version", [114, 117])
     def test_write_variable_labels(self, version):
         # GH 13631, add support for writing variable labels
@@ -1335,6 +1337,7 @@ class TestStata:
             with tm.ensure_clean() as path:
                 original.to_stata(path, variable_labels=variable_labels_long)
 
+    @pytest.mark.intel
     def test_default_date_conversion(self):
         # GH 12259
         dates = [
index 05ebff4387908196fd106bbd6b823c577b79fba2..f812c2fbc46d2e3b6a3c89144452a2ad2cad718d 100644 (file)
@@ -1145,6 +1145,7 @@ class TestSeriesMode:
         expected = Series(expected2, dtype=object)
         tm.assert_series_equal(result, expected)
 
+    @pytest.mark.intel
     @pytest.mark.parametrize(
         "dropna, expected1, expected2",
         [
index 6802e20fe7b4a66ccae7174a88a5bc5a23572e5e..cb780c14ade07825f122e3cfdad265a719876d21 100644 (file)
@@ -963,6 +963,7 @@ class TestSeriesConstructors:
 
         tm.assert_series_equal(result, expected)
 
+    @pytest.mark.intel
     @pytest.mark.parametrize("arg", ["2013-01-01 00:00:00", pd.NaT, np.nan, None])
     def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
         # GH 17415: With naive string