Skip to content

Commit ff1c510

Browse files
committed
TST/CI: xfail 32-bit tests pandas-dev#36579, pandas-dev#32709
1 parent 7a1c7f2 commit ff1c510

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pandas/tests/arrays/floating/test_function.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def test_ufunc_reduce_raises(values):
7373
np.add.reduce(a)
7474

7575

76+
@pytest.mark.xfail(not IS64, reason="GH 36579: fail on 32-bit system")
7677
@pytest.mark.parametrize(
7778
"pandasmethname, kwargs",
7879
[
@@ -84,15 +85,10 @@ def test_ufunc_reduce_raises(values):
8485
],
8586
)
8687
def test_stat_method(pandasmethname, kwargs):
87-
s = pd.Series(
88-
data=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, np.nan, np.nan],
89-
dtype="Float64" if IS64 else "Float32",
90-
)
88+
s = pd.Series(data=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, np.nan, np.nan], dtype="Float64")
9189
pandasmeth = getattr(s, pandasmethname)
9290
result = pandasmeth(**kwargs)
93-
s2 = pd.Series(
94-
data=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6], dtype="float64" if IS64 else "float32"
95-
)
91+
s2 = pd.Series(data=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6], dtype="float64")
9692
pandasmeth = getattr(s2, pandasmethname)
9793
expected = pandasmeth(**kwargs)
9894
assert expected == result

pandas/tests/io/formats/test_info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
import pytest
99

10-
from pandas.compat import PYPY
10+
from pandas.compat import IS64, PYPY
1111

1212
from pandas import (
1313
CategoricalIndex,
@@ -475,6 +475,7 @@ def test_info_categorical():
475475
df.info(buf=buf)
476476

477477

478+
@pytest.mark.xfail(not IS64, reason="GH 36579: fail on 32-bit system")
478479
def test_info_int_columns():
479480
# GH#37245
480481
df = DataFrame({1: [1, 2], 2: [2, 3]}, index=["A", "B"])

pandas/tests/reshape/test_pivot.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import numpy as np
55
import pytest
66

7+
from pandas.compat import IS64
8+
79
import pandas as pd
810
from pandas import (
911
Categorical,
@@ -2104,6 +2106,7 @@ def test_pivot_duplicates(self):
21042106
with pytest.raises(ValueError, match="duplicate entries"):
21052107
data.pivot("a", "b", "c")
21062108

2109+
@pytest.mark.xfail(not IS64, reason="GH 36579: fail on 32-bit system")
21072110
def test_pivot_empty(self):
21082111
df = DataFrame(columns=["a", "b", "c"])
21092112
result = df.pivot("a", "b", "c")

0 commit comments

Comments
 (0)