Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: enhance xfail markers with specific reasons in timestamp_test.py #2065

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

luke396
Copy link
Member

@luke396 luke396 commented Feb 22, 2025

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

@luke396 luke396 marked this pull request as ready for review February 22, 2025 12:52
Comment on lines -56 to +58
request.applymarker(pytest.mark.xfail)
request.applymarker(pytest.mark.xfail(reason="Second precision not supported"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we skipping this one, if it isn't and can't be supported?

Comment on lines +167 to 169
request.applymarker(
pytest.mark.xfail(reason="Backend does not support date type")
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a skip?

Comment on lines +103 to +105
(any(x in str(constructor) for x in ("pyarrow",)) and is_windows()),
"PyArrow timezone not supported on Windows",
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just noticed this check isn't valid:
https://arrow.apache.org/docs/python/install.html#tzdata-on-windows

Or more accurately, these shouldn't xfail on just is_windows().

You'd want something like:

FAILED tests/selectors_test.py::test_datetime[pandas[pyarrow]]
FAILED tests/selectors_test.py::test_datetime[pyarrow]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_none[pyarrow]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_none[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_none_series[pyarrow]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_series[pyarrow]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_none_series[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone[pyarrow]
FAILED tests/expr_and_series/dt/replace_time_zone_test.py::test_replace_time_zone_series[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-us-ns-expected3]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-us-ns-expected3]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-us-ms-expected5]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ms-ns-expected6]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ns-us-expected1]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ms-us-expected7]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ns-ms-expected2]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ms-ms-expected8]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ms-ms-expected8]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-us-ms-expected5]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ms-ns-expected6]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-s-ns-expected9]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ns-ns-expected0]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-us-us-expected4]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-s-us-expected10]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-us-us-expected4]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ns-ms-expected2]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ns-us-expected1]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-s-ms-expected11]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-s-ms-expected11]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-s-ns-expected9]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-ms-us-expected7]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pyarrow-s-us-expected10]
FAILED tests/expr_and_series/dt/timestamp_test.py::test_timestamp_datetimes_tz_aware[pandas[pyarrow]-ns-ns-expected0]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone_series[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone_from_none[pyarrow]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone_from_none[pandas[pyarrow]]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone_series[pyarrow]
FAILED tests/expr_and_series/dt/convert_time_zone_test.py::test_convert_time_zone[pyarrow]
FAILED tests/frame/to_numpy_test.py::test_to_numpy_tz_aware[pandas[pyarrow]]
FAILED tests/frame/to_numpy_test.py::test_to_numpy_tz_aware[pyarrow]
FAILED tests/series_only/to_numpy_test.py::test_to_numpy_tz_aware[pandas[pyarrow]]
FAILED tests/series_only/to_numpy_test.py::test_to_numpy_tz_aware[pyarrow]
FAILED tests/expr_and_series/cast_test.py::test_cast_datetime_tz_aware[pyarrow]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to install it to investigate #2042 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants