Skip to content

Commit 5c88f92

Browse files
TomAugspurgerfangchenli
authored andcommitted
CI: xfail failing 32-bit tests (pandas-dev#35295)
* CI: xfail failing 32-bit tests pandas-dev#35294
1 parent 6f593d2 commit 5c88f92

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

pandas/tests/window/test_api.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pandas.util._test_decorators as td
77

88
import pandas as pd
9-
from pandas import DataFrame, Index, Series, Timestamp, concat
9+
from pandas import DataFrame, Index, Series, Timestamp, compat, concat
1010
import pandas._testing as tm
1111
from pandas.core.base import SpecificationError
1212

@@ -277,7 +277,7 @@ def test_preserve_metadata():
277277
@pytest.mark.parametrize(
278278
"func,window_size,expected_vals",
279279
[
280-
(
280+
pytest.param(
281281
"rolling",
282282
2,
283283
[
@@ -289,6 +289,7 @@ def test_preserve_metadata():
289289
[35.0, 40.0, 60.0, 40.0],
290290
[60.0, 80.0, 85.0, 80],
291291
],
292+
marks=pytest.mark.xfail(not compat.IS64, reason="GH-35294"),
292293
),
293294
(
294295
"expanding",

pandas/tests/window/test_apply.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pandas.errors import NumbaUtilError
55
import pandas.util._test_decorators as td
66

7-
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, date_range
7+
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, compat, date_range
88
import pandas._testing as tm
99

1010

@@ -142,6 +142,7 @@ def test_invalid_kwargs_nopython():
142142

143143

144144
@pytest.mark.parametrize("args_kwargs", [[None, {"par": 10}], [(10,), None]])
145+
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
145146
def test_rolling_apply_args_kwargs(args_kwargs):
146147
# GH 33433
147148
def foo(x, par):

pandas/tests/window/test_grouper.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33

44
import pandas as pd
5-
from pandas import DataFrame, Series
5+
from pandas import DataFrame, Series, compat
66
import pandas._testing as tm
77
from pandas.core.groupby.groupby import get_groupby
88

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

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

59+
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
5860
def test_rolling(self):
5961
g = self.frame.groupby("A")
6062
r = g.rolling(window=4)
@@ -72,6 +74,7 @@ def test_rolling(self):
7274
@pytest.mark.parametrize(
7375
"interpolation", ["linear", "lower", "higher", "midpoint", "nearest"]
7476
)
77+
@pytest.mark.xfail(not compat.IS64, reason="GH-35294")
7578
def test_rolling_quantile(self, interpolation):
7679
g = self.frame.groupby("A")
7780
r = g.rolling(window=4)
@@ -102,6 +105,7 @@ def func(x):
102105
expected = g.apply(func)
103106
tm.assert_series_equal(result, expected)
104107

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

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

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

pandas/tests/window/test_timeseries_window.py

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
MultiIndex,
88
Series,
99
Timestamp,
10+
compat,
1011
date_range,
1112
to_datetime,
1213
)
@@ -656,6 +657,7 @@ def agg_by_day(x):
656657

657658
tm.assert_frame_equal(result, expected)
658659

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

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

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

0 commit comments

Comments
 (0)