Skip to content

Skip far-future date test on 32-bit platforms#46

Closed
nadzyah wants to merge 1 commit into
rndusr:masterfrom
nadzyah:fix-time-overflow-32-bit
Closed

Skip far-future date test on 32-bit platforms#46
nadzyah wants to merge 1 commit into
rndusr:masterfrom
nadzyah:fix-time-overflow-32-bit

Conversation

@nadzyah
Copy link
Copy Markdown
Contributor

@nadzyah nadzyah commented May 31, 2026

test_edit_creation_date sets a creation date in the year 3000. On 32-bit platforms time_t is 32-bit and cannot represent dates beyond 2038, so int(datetime.timestamp()) in the machine-readable formatter raises OverflowError. Skip the test where the platform cannot represent such a date

Originally found while testing the package in Debian on i386 arch:
https://ci.debian.net/packages/t/torf-cli/testing/i386/71579780/

test_edit_creation_date sets a creation date in the year 3000. On
32-bit platforms time_t is 32-bit and cannot represent dates beyond
2038, so int(datetime.timestamp()) in the machine-readable formatter
raises OverflowError. Skip the test where the platform cannot
represent such a date
@rndusr
Copy link
Copy Markdown
Owner

rndusr commented Jun 1, 2026 via email

@rndusr rndusr closed this Jun 1, 2026
@nadzyah nadzyah deleted the fix-time-overflow-32-bit branch June 1, 2026 08:51
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