• Julien Muchembled's avatar
    windows: fix failures due to low-precision of time.time() · f08b40e1
    Julien Muchembled authored
    This fixes the following random failure:
    
    Failure in test checkBaseHistory (ZODB.tests.testDemoStorage.DemoStorageTests)
    Traceback (most recent call last):
      File "unittest\case.py", line 384, in _executeTestPart
        function()
      File "ZODB\tests\testDemoStorage.py", line 96, in checkBaseHistory
        self._checkHistory(base_only())
      File "ZODB\tests\HistoryStorage.py", line 46, in _checkHistory
        self.assertLess(a, b)
      File "unittest\case.py", line 1026, in assertLess
        self.fail(self._formatMessage(msg, standardMsg))
      File "unittest\case.py", line 508, in fail
        raise self.failureException(msg)
    AssertionError: 1465433823.260304 not less than 1465433823.260304
    f08b40e1
HistoryStorage.py 1.87 KB