Skip to content

Commit e459de6

Browse files
committed
go for green
1 parent d526e05 commit e459de6

File tree

6 files changed

+9
-21
lines changed

6 files changed

+9
-21
lines changed

ci/deps/circle-310-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
- python-dateutil
2323
- numpy
2424
# pytz 2024.2 timezones cause wrong results
25-
- pytz
25+
- pytz < 2024.2
2626

2727
# optional dependencies
2828
- beautifulsoup4>=4.11.2

pandas/tests/indexes/interval/test_interval_tree.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def test_construction_overflow(self):
190190
expected = (50 + np.iinfo(np.int64).max) / 2
191191
assert result == expected
192192

193-
@pytest.mark.xfail(not IS64, reason="GH 23440")
194193
@pytest.mark.parametrize(
195194
"left, right, expected",
196195
[

pandas/tests/indexing/interval/test_interval.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pytest
33

44
from pandas._libs import index as libindex
5-
from pandas.compat import IS64
65

76
import pandas as pd
87
from pandas import (
@@ -210,7 +209,6 @@ def test_mi_intervalindex_slicing_with_scalar(self):
210209
expected = Series([1, 6, 2, 8, 7], index=expected_index, name="value")
211210
tm.assert_series_equal(result, expected)
212211

213-
@pytest.mark.xfail(not IS64, reason="GH 23440")
214212
@pytest.mark.parametrize(
215213
"base",
216214
[101, 1010],

pandas/tests/indexing/interval/test_interval_new.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import numpy as np
44
import pytest
55

6-
from pandas.compat import IS64
7-
86
from pandas import (
97
Index,
108
Interval,
@@ -211,7 +209,6 @@ def test_loc_getitem_missing_key_error_message(
211209
obj.loc[[4, 5, 6]]
212210

213211

214-
@pytest.mark.xfail(not IS64, reason="GH 23440")
215212
@pytest.mark.parametrize(
216213
"intervals",
217214
[

pandas/tests/io/test_parquet.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
pa_version_under11p0,
1717
pa_version_under13p0,
1818
pa_version_under15p0,
19-
pa_version_under17p0,
2019
)
2120

2221
import pandas as pd
@@ -449,12 +448,8 @@ def test_read_filters(self, engine, tmp_path):
449448
repeat=1,
450449
)
451450

452-
def test_write_index(self, engine, using_copy_on_write, request):
451+
def test_write_index(self, engine):
453452
check_names = engine != "fastparquet"
454-
if using_copy_on_write and engine == "fastparquet":
455-
request.applymarker(
456-
pytest.mark.xfail(reason="fastparquet write into index")
457-
)
458453

459454
df = pd.DataFrame({"A": [1, 2, 3]})
460455
check_round_trip(df, engine)
@@ -1064,9 +1059,6 @@ def test_read_dtype_backend_pyarrow_config_index(self, pa):
10641059
expected=expected,
10651060
)
10661061

1067-
@pytest.mark.xfail(
1068-
pa_version_under17p0, reason="pa.pandas_compat passes 'datetime64' to .astype"
1069-
)
10701062
def test_columns_dtypes_not_invalid(self, pa):
10711063
df = pd.DataFrame({"string": list("abc"), "int": list(range(1, 4))})
10721064

@@ -1315,9 +1307,7 @@ def test_empty_dataframe(self, fp):
13151307
check_round_trip(df, fp, expected=expected)
13161308

13171309
@pytest.mark.xfail(
1318-
not using_copy_on_write()
1319-
and _HAVE_FASTPARQUET
1320-
and Version(fastparquet.__version__) > Version("2022.12"),
1310+
_HAVE_FASTPARQUET and Version(fastparquet.__version__) > Version("2022.12"),
13211311
reason="fastparquet bug, see https://github.com/dask/fastparquet/issues/929",
13221312
)
13231313
def test_timezone_aware_index(self, fp, timezone_aware_date_list):

pandas/tests/series/indexing/test_setitem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
import numpy as np
99
import pytest
1010

11-
from pandas.compat.numpy import np_version_gte1p24
11+
from pandas.compat.numpy import (
12+
np_version_gt2,
13+
np_version_gte1p24,
14+
)
1215
from pandas.errors import IndexingError
1316

1417
from pandas.core.dtypes.common import is_list_like
@@ -1446,7 +1449,8 @@ def obj(self):
14461449
not np_version_gte1p24
14471450
or (
14481451
np_version_gte1p24
1449-
and os.environ.get("NPY_PROMOTION_STATE", "weak") != "weak"
1452+
and not np_version_gt2
1453+
and os.environ.get("NPY_PROMOTION_STATE", "legacy") != "weak"
14501454
)
14511455
),
14521456
reason="np.float32(1.1) ends up as 1.100000023841858, so "

0 commit comments

Comments
 (0)