bdraco / yalexs

Python API for Yale Access (formerly August) Smart Lock and Doorbell
MIT License
38 stars 18 forks source link

Tests fail on i386 because time_t overflows #151

Closed EdwardBetts closed 3 weeks ago

EdwardBetts commented 4 weeks ago

When the tests are run on i386 they fail. Here's where it fails.

        activities = activities_from_pubnub_message(
            lock,
>           datetime.datetime.fromtimestamp(16844292526891571 / 1000000),
            {
                "status": "unlatched",
                "callingUserID": "manualunlatch",
                "doorState": "open",
            },
        )
E       OverflowError: timestamp out of range for platform time_t

tests/test_pubnub_activity.py:320: OverflowError

Full build log at https://ci.debian.net/packages/p/python-yalexs/testing/i386/50435663/

EdwardBetts commented 3 weeks ago

Fixed in #156.

bdraco commented 3 weeks ago

fixed via #156

releasing now