Skip to content

Commit

Permalink
go for green
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Sep 18, 2024
1 parent d526e05 commit e459de6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion ci/deps/circle-310-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
- python-dateutil
- numpy
# pytz 2024.2 timezones cause wrong results
- pytz
- pytz < 2024.2

# optional dependencies
- beautifulsoup4>=4.11.2
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/indexes/interval/test_interval_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def test_construction_overflow(self):
expected = (50 + np.iinfo(np.int64).max) / 2
assert result == expected

@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.parametrize(
"left, right, expected",
[
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/indexing/interval/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pytest

from pandas._libs import index as libindex
from pandas.compat import IS64

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

@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.parametrize(
"base",
[101, 1010],
Expand Down
3 changes: 0 additions & 3 deletions pandas/tests/indexing/interval/test_interval_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import numpy as np
import pytest

from pandas.compat import IS64

from pandas import (
Index,
Interval,
Expand Down Expand Up @@ -211,7 +209,6 @@ def test_loc_getitem_missing_key_error_message(
obj.loc[[4, 5, 6]]


@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.parametrize(
"intervals",
[
Expand Down
14 changes: 2 additions & 12 deletions pandas/tests/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
pa_version_under11p0,
pa_version_under13p0,
pa_version_under15p0,
pa_version_under17p0,
)

import pandas as pd
Expand Down Expand Up @@ -449,12 +448,8 @@ def test_read_filters(self, engine, tmp_path):
repeat=1,
)

def test_write_index(self, engine, using_copy_on_write, request):
def test_write_index(self, engine):
check_names = engine != "fastparquet"
if using_copy_on_write and engine == "fastparquet":
request.applymarker(
pytest.mark.xfail(reason="fastparquet write into index")
)

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

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

Expand Down Expand Up @@ -1315,9 +1307,7 @@ def test_empty_dataframe(self, fp):
check_round_trip(df, fp, expected=expected)

@pytest.mark.xfail(
not using_copy_on_write()
and _HAVE_FASTPARQUET
and Version(fastparquet.__version__) > Version("2022.12"),
_HAVE_FASTPARQUET and Version(fastparquet.__version__) > Version("2022.12"),
reason="fastparquet bug, see https://github.com/dask/fastparquet/issues/929",
)
def test_timezone_aware_index(self, fp, timezone_aware_date_list):
Expand Down
8 changes: 6 additions & 2 deletions pandas/tests/series/indexing/test_setitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
import numpy as np
import pytest

from pandas.compat.numpy import np_version_gte1p24
from pandas.compat.numpy import (
np_version_gt2,
np_version_gte1p24,
)
from pandas.errors import IndexingError

from pandas.core.dtypes.common import is_list_like
Expand Down Expand Up @@ -1446,7 +1449,8 @@ def obj(self):
not np_version_gte1p24
or (
np_version_gte1p24
and os.environ.get("NPY_PROMOTION_STATE", "weak") != "weak"
and not np_version_gt2
and os.environ.get("NPY_PROMOTION_STATE", "legacy") != "weak"
)
),
reason="np.float32(1.1) ends up as 1.100000023841858, so "
Expand Down

0 comments on commit e459de6

Please sign in to comment.