Subject: bug#39870: python-robotframework build fails

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 02 Mar 2020 13:57:08 -0500

Even after upgrading to v3.2b2, I still got:

--8<---------------cut here---------------start------------->8---
starting phase `check'
.........................................................................................................................................................................................................................................................................................................................................EEE...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_set_level (test_filelogger.TestFileLogger)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 23, in setUp
    robottime.TIMESTAMP_CACHE = _FakeTimeCache()
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 13, in __init__
    self.fake = time.mktime((2006, 6, 13, 8, 37, 42, 0, 0, 1)) + 0.123
OverflowError: mktime argument out of range

======================================================================
ERROR: test_write (test_filelogger.TestFileLogger)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 23, in setUp
    robottime.TIMESTAMP_CACHE = _FakeTimeCache()
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 13, in __init__
    self.fake = time.mktime((2006, 6, 13, 8, 37, 42, 0, 0, 1)) + 0.123
OverflowError: mktime argument out of range

======================================================================
ERROR: test_write_helpers (test_filelogger.TestFileLogger)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 23, in setUp
    robottime.TIMESTAMP_CACHE = _FakeTimeCache()
  File "/tmp/guix-build-python-robotframework-3.2b2.drv-0/python-robotframework-3.2b2-checkout/utest/output/test_filelogger.py", line 13, in __init__
    self.fake = time.mktime((2006, 6, 13, 8, 37, 42, 0, 0, 1)) + 0.123
OverflowError: mktime argument out of range

----------------------------------------------------------------------
Ran 1547 tests in 5.750s
--8<---------------cut here---------------end--------------->8---

Perhaps due to the custom reproducibility patch honoring DATE_EPOCH.

To be continued...

Maxim