You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_monotonicself.assertTrue(0.45<= dt <=1.0, dt)
AssertionError: False is not true : 1.0372954378835857
Extract of the test:
deftest_monotonic(self):
...
# monotonic() includes time elapsed during a sleept1=time.monotonic()
time.sleep(0.5)
t2=time.monotonic()
dt=t2-t1self.assertGreater(t2, t1)
# Issue python/cpython#64300: On some Windows machines, dt may be slightly lowself.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.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: