Skip to content

Commit 7b718ba

Browse files
xfail 32-bit testsp (#35289)
1 parent 492e3e9 commit 7b718ba

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

pandas/compat/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
PY38 = sys.version_info >= (3, 8)
1919
PY39 = sys.version_info >= (3, 9)
2020
PYPY = platform.python_implementation() == "PyPy"
21+
IS64 = sys.maxsize > 2 ** 32
2122

2223

2324
# ----------------------------------------------------------------------------

pandas/tests/io/json/test_pandas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import pandas.util._test_decorators as td
1414

1515
import pandas as pd
16-
from pandas import DataFrame, DatetimeIndex, Series, Timestamp, read_json
16+
from pandas import DataFrame, DatetimeIndex, Series, Timestamp, compat, read_json
1717
import pandas._testing as tm
1818

1919
_seriesd = tm.getSeriesData()
@@ -1257,7 +1257,7 @@ def test_to_json_large_numbers(self, bigNum):
12571257
assert json == expected
12581258

12591259
@pytest.mark.parametrize("bigNum", [sys.maxsize + 1, -(sys.maxsize + 2)])
1260-
@pytest.mark.skipif(sys.maxsize <= 2 ** 32, reason="GH-35279")
1260+
@pytest.mark.skipif(not compat.IS64, reason="GH-35279")
12611261
def test_read_json_large_numbers(self, bigNum):
12621262
# GH20599
12631263

pandas/tests/io/json/test_ujson.py

+1
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ def test_encode_long_conversion(self):
561561
assert long_input == ujson.decode(output)
562562

563563
@pytest.mark.parametrize("bigNum", [sys.maxsize + 1, -(sys.maxsize + 2)])
564+
@pytest.mark.xfail(not compat.IS64, reason="GH-35288")
564565
def test_dumps_ints_larger_than_maxsize(self, bigNum):
565566
# GH34395
566567
bigNum = sys.maxsize + 1

pandas/tests/resample/test_resampler_grouper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pandas.util._test_decorators import async_mark
77

88
import pandas as pd
9-
from pandas import DataFrame, Series, Timestamp
9+
from pandas import DataFrame, Series, Timestamp, compat
1010
import pandas._testing as tm
1111
from pandas.core.indexes.datetimes import date_range
1212

@@ -317,6 +317,7 @@ def test_resample_groupby_with_label():
317317
tm.assert_frame_equal(result, expected)
318318

319319

320+
@pytest.mark.xfail(not compat.IS64, reason="GH-35148")
320321
def test_consistency_with_window():
321322

322323
# consistent return values with window

0 commit comments

Comments
 (0)