Skip to content

Tests fail on 32-bit system with 64-bit time_t #35

@iliastsi

Description

@iliastsi

As part of solving the year 2038 problem, Debian now uses 64-bit time_t on 32-bit systems. In such environments, tests fails:

> ======================================================================
> ERROR: test_now (test_udatetime.Test.test_now)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_udatetime/build/test/test_udatetime.py", line 28, in test_now
>     now = udatetime.now()
>           ^^^^^^^^^^^^^^^
> ValueError: year 104645 is out of range
> 
> ======================================================================
> ERROR: test_utcnow (test_udatetime.Test.test_utcnow)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_udatetime/build/test/test_udatetime.py", line 12, in test_utcnow
>     now = udatetime.utcnow()
>           ^^^^^^^^^^^^^^^^^^
> ValueError: year 104781 is out of range
> 
> ----------------------------------------------------------------------

For full build logs, see https://bugs.debian.org/1069519.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions