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

[Python] tests/test_compute.py::test_count_distinct fails on 29th of February #40298

Closed
mgorny opened this issue Feb 29, 2024 · 2 comments
Closed

Comments

@mgorny
Copy link
Contributor

mgorny commented Feb 29, 2024

Describe the bug, including details regarding any error messages, version, and platform.

The following test fails on February 29th:

_________________________________________________________ test_count_distinct _________________________________________________________

    def test_count_distinct():
        seed = datetime.datetime.now()
>       samples = [seed.replace(year=y) for y in range(1992, 2092)]

seed       = datetime.datetime(2024, 2, 29, 17, 56, 47, 833976)

../work/apache-arrow-15.0.0/python-python3_11/install/usr/lib/python3.11/site-packages/pyarrow/tests/test_compute.py:3197: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <range_iterator object at 0xe757e368>

>   samples = [seed.replace(year=y) for y in range(1992, 2092)]
E   ValueError: day is out of range for month

.0         = <range_iterator object at 0xe757e368>
seed       = datetime.datetime(2024, 2, 29, 17, 56, 47, 833976)
y          = 1993

../work/apache-arrow-15.0.0/python-python3_11/install/usr/lib/python3.11/site-packages/pyarrow/tests/test_compute.py:3197: ValueError

Component(s)

Python

@jorisvandenbossche
Copy link
Member

Yes, we fixed it yesterday with #40288

@mgorny
Copy link
Contributor Author

mgorny commented Mar 1, 2024

Thanks!

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

No branches or pull requests

2 participants