From: Debian Science Team Date: Sat, 20 Jan 2018 09:00:31 +0000 (+0000) Subject: mark_tests_working_on_intel X-Git-Tag: archive/raspbian/0.20.3-11+rpi1~2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=11241c4b88434f2686fb1989110b06de2d7c1b0f;p=pandas.git mark_tests_working_on_intel Last-Update Sat, 14 Oct 2017 19:42:59 +0200 Bug-Debian: https://bugs.debian.org/877419 Gbp-Pq: Name mark_tests_working_on_intel.patch --- diff --git a/pandas/tests/dtypes/test_cast.py b/pandas/tests/dtypes/test_cast.py index 767e99d9..48d87566 100644 --- a/pandas/tests/dtypes/test_cast.py +++ b/pandas/tests/dtypes/test_cast.py @@ -67,6 +67,7 @@ class TestMaybeDowncast(object): tm.assert_almost_equal(result, np.array([], dtype=np.int64)) assert result.dtype == np.int64 + @pytest.mark.intel def test_datetimelikes_nan(self): arr = np.array([1, 2, np.nan]) exp = np.array([1, 2, np.datetime64('NaT')], dtype='datetime64[ns]') diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 20538056..ca5f8a83 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1741,6 +1741,7 @@ class TestDataFrameConstructors(TestData): def test_from_records_sequencelike(self): import platform if platform.uname()[4].startswith('armv'): + import nose raise nose.SkipTest("Fails on Debian arm boxes due to locales or whatelse") df = DataFrame({'A': np.array(np.random.randn(6), dtype=np.float64), 'A1': np.array(np.random.randn(6), dtype=np.float64), diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py index f0503b60..215ecfe2 100644 --- a/pandas/tests/frame/test_indexing.py +++ b/pandas/tests/frame/test_indexing.py @@ -2607,6 +2607,7 @@ class TestDataFrameIndexing(TestData): result = a.where(do_not_replace, b) assert_frame_equal(result, expected) + @pytest.mark.intel def test_where_datetime(self): # GH 3311 diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py index 8ec6c6e6..f8ecd408 100644 --- a/pandas/tests/frame/test_operators.py +++ b/pandas/tests/frame/test_operators.py @@ -177,6 +177,7 @@ class TestDataFrameOperators(TestData): df)), 'b': date_range('20100101', periods=len(df))}) check(df, df2) + @pytest.mark.intel def test_timestamp_compare(self): # make sure we can compare Timestamps on the right AND left hand side # GH4982 diff --git a/pandas/tests/groupby/test_aggregate.py b/pandas/tests/groupby/test_aggregate.py index d7b46e67..5d42ca75 100644 --- a/pandas/tests/groupby/test_aggregate.py +++ b/pandas/tests/groupby/test_aggregate.py @@ -131,6 +131,7 @@ class TestGroupByAggregate(object): grouped = df.groupby(df.index.month) list(grouped) + @pytest.mark.intel def test_agg_dict_parameter_cast_result_dtypes(self): # GH 12821 diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index 9358fe4d..a701680c 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -24,6 +24,7 @@ from pandas.core.dtypes.common import is_categorical_dtype from pandas.compat import is_platform_little_endian if not is_platform_little_endian(): + import nose raise nose.SkipTest("known failure of test_stata on non-little endian") diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index d591aa4f..f3c4e6d9 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -828,6 +828,7 @@ class TestSeriesConstructors(TestData): series[2] = val assert isnull(series[2]) + @pytest.mark.intel def test_NaT_cast(self): # GH10747 result = Series([np.nan]).astype('M8[ns]') diff --git a/pandas/tests/series/test_indexing.py b/pandas/tests/series/test_indexing.py index 25229b26..8e4ab147 100644 --- a/pandas/tests/series/test_indexing.py +++ b/pandas/tests/series/test_indexing.py @@ -1378,6 +1378,7 @@ class TestSeriesIndexing(TestData): expected = Series([5, 11, 2, 5, 11, 2], index=[0, 1, 2, 0, 1, 2]) assert_series_equal(comb, expected) + @pytest.mark.intel def test_where_datetime(self): s = Series(date_range('20130102', periods=2)) expected = Series([10, 10], dtype='datetime64[ns]') @@ -1407,6 +1408,7 @@ class TestSeriesIndexing(TestData): expected = Series([pd.NaT, s[1]]) assert_series_equal(rs, expected) + @pytest.mark.intel def test_where_timedelta(self): s = Series([1, 2], dtype='timedelta64[ns]') expected = Series([10, 10], dtype='timedelta64[ns]') diff --git a/pandas/tests/series/test_period.py b/pandas/tests/series/test_period.py index 6e8ee38d..d69f9a27 100644 --- a/pandas/tests/series/test_period.py +++ b/pandas/tests/series/test_period.py @@ -94,6 +94,7 @@ class TestSeriesPeriod(object): series[2] = val assert isnull(series[2]) + @pytest.mark.intel def test_NaT_cast(self): result = Series([np.nan]).astype('period[D]') expected = Series([NaT]) diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index cd70c207..d4389f1c 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -748,6 +748,7 @@ class TestValueCounts(object): expected = Series([2, 1, 1], index=[5., 10.3, np.nan]) tm.assert_series_equal(result, expected) + @pytest.mark.intel def test_value_counts_normalized(self): # GH12558 s = Series([1, 2, np.nan, np.nan, np.nan]) diff --git a/pandas/tests/test_resample.py b/pandas/tests/test_resample.py index bcc32bd7..021b4abd 100644 --- a/pandas/tests/test_resample.py +++ b/pandas/tests/test_resample.py @@ -2152,6 +2152,7 @@ class TestDatetimeIndex(Base): assert_frame_equal(frame.resample('60s').mean(), frame_3s) + @pytest.mark.intel def test_resample_timedelta_values(self): # GH 13119 # check that timedelta dtype is preserved when NaT values are @@ -2169,6 +2170,7 @@ class TestDatetimeIndex(Base): res = df['time'].resample('2D').first() tm.assert_series_equal(res, exp) + @pytest.mark.intel def test_resample_datetime_values(self): # GH 13119 # check that datetime dtype is preserved when NaT values are