[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

Charles-François Natali report at bugs.python.org
Thu Jan 23 19:42:47 CET 2014


Charles-François Natali added the comment:

======================================================================
> FAIL: test_timeout_rounding (test.test_epoll.TestEPoll)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_epoll.py",
line 59, in test_timeout_rounding
>     self.assertGreaterEqual(dt, timeout)
> AssertionError: 0.009316698648035526 not greater than or equal to 0.01

Those failures are "expected", nothing guarantees that the syscall will
take at least the amount of time specified.

----------

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


More information about the Python-bugs-list mailing list