• Bug#1096225: ola: FTBFS: AssertionError: datetime.timedelta(microsecond

    From Adrian Bunk@21:1/5 to Lucas Nussbaum on Tue Mar 18 17:50:01 2025
    On Mon, Feb 17, 2025 at 05:19:06PM +0100, Lucas Nussbaum wrote:
    ...
    ====================================================================== FAIL: testEventLoop (__main__.ClientWrapperTest.testEventLoop) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/build/reproducible-path/ola-0.10.9.nojsmin/./python/ola/ClientWrapperTest.py", line 204, in testEventLoop
    self.assertAlmostEqual(c_diff, datetime.timedelta(milliseconds=10),
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    delta=datetime.timedelta(microseconds=750))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: datetime.timedelta(microseconds=16680) != datetime.timedelta(microseconds=10000) within datetime.timedelta(microseconds=750) delta (datetime.timedelta(microseconds=6680) difference)

    ----------------------------------------------------------------------
    Ran 6 tests in 0.019s

    FAILED (failures=1)
    FAIL python/ola/ClientWrapperTest.sh (exit status: 1)
    ...

    It seems
    https://github.com/OpenLightingProject/ola/commit/916c1b426ae21015363ec29478cd2d7a5be4f5d6
    was still far too optimistic.

    cu
    Adrian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)