HyukjinKwon opened a new pull request, #48655: URL: https://github.com/apache/arrow/pull/48655
### Rationale for this change The test `test_sequence_timestamp_from_int_with_unit()` was marked with `@pytest.mark.pandas`, meaning it was skipped when pandas was not installed. This left the non-pandas code path untested. The TODO was introduced in commit 286bf7c9 when making pandas an optional dependency: https://github.com/apache/arrow/blob/286bf7c9d343cb972691c32ea8128390aed39119/python/pyarrow/tests/test_convert_builtin.py#L731-L732 ### What changes are included in this PR? Rewrote the test to work both with and without pandas by: 1. Removed `@pytest.mark.pandas` decorator 2. Removed TODO comment left and added conditional testing for nanosecond timestamp behavior: - With pandas: Validates `pd.Timestamp` with full nanosecond precision - Without pandas: Validates that `as_py()` raises `ValueError` for values not safely convertible to microseconds ### Are these changes tested? Yes. I manually tested with/without pandas. ### Are there any user-facing changes? No, test-only. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
