-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: main
Are you sure you want to change the base?
Conversation
request.applymarker(pytest.mark.xfail) | ||
request.applymarker(pytest.mark.xfail(reason="Second precision not supported")) |
There was a problem hiding this comment.
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?
request.applymarker( | ||
pytest.mark.xfail(reason="Backend does not support date type") | ||
) |
There was a problem hiding this comment.
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?
(any(x in str(constructor) for x in ("pyarrow",)) and is_windows()), | ||
"PyArrow timezone not supported on Windows", | ||
), |
There was a problem hiding this comment.
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:
- https://github.com/vega/altair/blob/a196172329fb6d03529bf21a7f58c8bb0f698dd4/tests/__init__.py#L30-L41
- https://github.com/vega/altair/blob/a196172329fb6d03529bf21a7f58c8bb0f698dd4/tests/__init__.py#L104-L140
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]
There was a problem hiding this comment.
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)
What type of PR is this? (check all applicable)
Related issues
Checklist
If you have comments or can explain your changes, please do so below