Skip to content

Commit

Permalink
CI: xfail failing 32-bit tests (pandas-dev#35295)
Browse files Browse the repository at this point in the history
* CI: xfail failing 32-bit tests

pandas-dev#35294
  • Loading branch information
TomAugspurger authored and fangchenli committed Jul 16, 2020
1 parent 6f593d2 commit 5c88f92
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/window/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pandas.util._test_decorators as td

import pandas as pd
from pandas import DataFrame, Index, Series, Timestamp, concat
from pandas import DataFrame, Index, Series, Timestamp, compat, concat
import pandas._testing as tm
from pandas.core.base import SpecificationError

Expand Down Expand Up @@ -277,7 +277,7 @@ def test_preserve_metadata():
@pytest.mark.parametrize(
"func,window_size,expected_vals",
[
(
pytest.param(
"rolling",
2,
[
Expand All @@ -289,6 +289,7 @@ def test_preserve_metadata():
[35.0, 40.0, 60.0, 40.0],
[60.0, 80.0, 85.0, 80],
],
marks=pytest.mark.xfail(not compat.IS64, reason="GH-35294"),
),
(
"expanding",
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/window/test_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pandas.errors import NumbaUtilError
import pandas.util._test_decorators as td

from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, date_range
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, compat, date_range
import pandas._testing as tm


Expand Down Expand Up @@ -142,6 +142,7 @@ def test_invalid_kwargs_nopython():


@pytest.mark.parametrize("args_kwargs", [[None, {"par": 10}], [(10,), None]])
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_rolling_apply_args_kwargs(args_kwargs):
# GH 33433
def foo(x, par):
Expand Down
8 changes: 7 additions & 1 deletion pandas/tests/window/test_grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

import pandas as pd
from pandas import DataFrame, Series
from pandas import DataFrame, Series, compat
import pandas._testing as tm
from pandas.core.groupby.groupby import get_groupby

Expand All @@ -23,6 +23,7 @@ def test_mutated(self):
g = get_groupby(self.frame, by="A", mutated=True)
assert g.mutated

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_getitem(self):
g = self.frame.groupby("A")
g_mutated = get_groupby(self.frame, by="A", mutated=True)
Expand Down Expand Up @@ -55,6 +56,7 @@ def test_getitem_multiple(self):
result = r.B.count()
tm.assert_series_equal(result, expected)

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_rolling(self):
g = self.frame.groupby("A")
r = g.rolling(window=4)
Expand All @@ -72,6 +74,7 @@ def test_rolling(self):
@pytest.mark.parametrize(
"interpolation", ["linear", "lower", "higher", "midpoint", "nearest"]
)
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_rolling_quantile(self, interpolation):
g = self.frame.groupby("A")
r = g.rolling(window=4)
Expand Down Expand Up @@ -102,6 +105,7 @@ def func(x):
expected = g.apply(func)
tm.assert_series_equal(result, expected)

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_rolling_apply(self, raw):
g = self.frame.groupby("A")
r = g.rolling(window=4)
Expand All @@ -111,6 +115,7 @@ def test_rolling_apply(self, raw):
expected = g.apply(lambda x: x.rolling(4).apply(lambda y: y.sum(), raw=raw))
tm.assert_frame_equal(result, expected)

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_rolling_apply_mutability(self):
# GH 14013
df = pd.DataFrame({"A": ["foo"] * 3 + ["bar"] * 3, "B": [1] * 6})
Expand Down Expand Up @@ -192,6 +197,7 @@ def test_expanding_apply(self, raw):
tm.assert_frame_equal(result, expected)

@pytest.mark.parametrize("expected_value,raw_value", [[1.0, True], [0.0, False]])
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_groupby_rolling(self, expected_value, raw_value):
# GH 31754

Expand Down
3 changes: 3 additions & 0 deletions pandas/tests/window/test_timeseries_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
MultiIndex,
Series,
Timestamp,
compat,
date_range,
to_datetime,
)
Expand Down Expand Up @@ -656,6 +657,7 @@ def agg_by_day(x):

tm.assert_frame_equal(result, expected)

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_groupby_monotonic(self):

# GH 15130
Expand Down Expand Up @@ -685,6 +687,7 @@ def test_groupby_monotonic(self):
result = df.groupby("name").rolling("180D", on="date")["amount"].sum()
tm.assert_series_equal(result, expected)

@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
def test_non_monotonic(self):
# GH 13966 (similar to #15130, closed by #15175)

Expand Down

0 comments on commit 5c88f92

Please sign in to comment.