[issue20452] test_timeout_rounding() of test_asyncio fails on "x86 Ubuntu Shared 3.x" buildbot

STINNER Victor report at bugs.python.org
Fri Jan 31 12:26:28 CET 2014


STINNER Victor added the comment:

> New changeset 827d948ac6aa by Victor Stinner in branch 'default':
> Issue #20452: select and selectors round (again) timeout away from zero

Let's test Charles-Francois option.

> test_timeout_rounding failed because once EPollSelector.select(timeout=0.0099) took dt=0.0086 seconds

We asked to wait 9.9 ms, which was rounding to 9 ms. But epoll_wait() took 8.6 seconds: 8.6 is smaller than 9 ms.

In my opinion, rounding away from zero is not enough. We should probably round away from zero for selectors *and* compare times using the granularity.

Let's see what buildbots say :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20452>
_______________________________________


More information about the Python-bugs-list mailing list