New submission from STINNER Victor <vstin...@redhat.com>:
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. ---------- components: Tests messages: 339002 nosy: vstinner priority: normal severity: normal status: open title: test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7 versions: Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36454> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com