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

Fix test_check_token failure on systems with 32-bit time_t #207

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Fix test_check_token failure on systems with 32-bit time_t #207

merged 1 commit into from
Apr 12, 2023

Conversation

misuzu
Copy link

@misuzu misuzu commented Mar 16, 2023

Skip tests if OverflowError is raised.
This is a known limitation of Python on 32-bit platforms (https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp).

Catching OverflowError is the best option here since some 32-bit platforms (e.g. NetBSD) use 64-bit time_t, and others are working on providing a switch to the 64-bit type (e.g. glibc).

Skip tests if OverflowError is raised.
This is a known limitation of Python on 32-bit platforms
(https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp).

Catching OverflowError is the best option here since some 32-bit
platforms (e.g. NetBSD) use 64-bit time_t, and others are working
on providing a switch to the 64-bit type (e.g. glibc).
@pvizeli pvizeli merged commit d5c43b1 into NabuCasa:master Apr 12, 2023
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.

2 participants