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

Guido van Rossum report at bugs.python.org
Sat Jan 25 23:56:04 CET 2014


Guido van Rossum added the comment:

I don't have the energy to read all the debate here, but over on python-tulip we continue to discuss this. Victor and I have currently agreed to drop the math.ceil() calls from the event loop and instead simply consider any event scheduled within "granularity" from the current clock value to be "ready". Victor will check it in.

Regarding the buildbot failures, Victor will have to review those.  They are in the telnet tests:

======================================================================
ERROR: test_read_until (test.test_telnetlib.ReadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build/Lib/test/test_telnetlib.py", line 179, in test_read_until
    data = telnet.read_until(b'match')
  File "/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build/Lib/telnetlib.py", line 312, in read_until
    with _TelnetSelector() as selector:
TypeError: Can't instantiate abstract class MockSelector with abstract methods resolution

======================================================================
ERROR: test_expect (test.test_telnetlib.ExpectTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build/Lib/test/test_telnetlib.py", line 388, in test_expect
    (_,_,data) = telnet.expect([b'match'])
  File "/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build/Lib/telnetlib.py", line 617, in expect
    with _TelnetSelector() as selector:
TypeError: Can't instantiate abstract class MockSelector with abstract methods resolution

----------------------------------------------------------------------

----------

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


More information about the Python-bugs-list mailing list