Issue 36454: test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7
AMD64 FreeBSD 10-STABLE Non-Debug 3.7: https://buildbot.python.org/all/#/builders/170/builds/354 ====================================================================== FAIL: test_monotonic (test.test_time.TimeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/buildbot/python/3.7.koobs-freebsd10.nondebug/build/Lib/test/test_time.py", line 474, in test_monotonic self.assertTrue(0.45 <= dt <= 1.0, dt) AssertionError: False is not true : 1.0372954378835857 Extract of the test: def test_monotonic(self): ... # monotonic() includes time elapsed during a sleep t1 = time.monotonic() time.sleep(0.5) t2 = time.monotonic() dt = t2 - t1 self.assertGreater(t2, t1) # Issue #20101: On some Windows machines, dt may be slightly low self.assertTrue(0.45 <= dt <= 1.0, dt) ... IMHO the test is too strict. It should not test the maximum value of dt, only the minimum.