You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "aosingh (via GitHub)" <gi...@apache.org> on 2024/06/09 04:33:31 UTC
[PR] Fix(Python) Unittests using timestamps on Windows [arrow-nanoarrow]
aosingh opened a new pull request, #512:
URL: https://github.com/apache/arrow-nanoarrow/pull/512
Using `datetime.timestamp()` for timestamps close to EPOCH fails on Windows crashing Python.
Please check this run https://github.com/apache/arrow-nanoarrow/actions/runs/9428246621/job/25973355558
Following snippet
```python
def test_c_array_timestamp_microseconds():
d1 = int(round(datetime(1970, 1, 1).timestamp() * 1e6))
```
raises error
```bash
OSError: [Errno 22] Invalid argument
```
The crux of the problem is explained in this [CPython issue](https://github.com/python/cpython/issues/81708)
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(Python) Use timezone-aware timestamps in some unit tests on Windows [arrow-nanoarrow]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot merged PR #512:
URL: https://github.com/apache/arrow-nanoarrow/pull/512
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org