On Fri, Jan 10, 2014 at 1:35 PM, Victor Stinner
<[email protected]> wrote:
> The new test fails on Mac OS X with the kqueue selector (it pass with
> the select selector).

What OSX version? Other info? It passes with all three types of
selectors for me on OS X 10.8.5.

> ======================================================================
> ERROR: test_read_pty_output (__main__.KqueueEventLoopTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/haypo/prog/HG/tulip/asyncio/selector_events.py", line
> 135, in add_reader
>     key = self._selector.get_key(fd)
>   File "/Users/haypo/prog/HG/tulip/asyncio/selectors.py", line 180, in get_key
>     raise KeyError("{!r} is not registered".format(fileobj)) from None
> KeyError: '7 is not registered'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "tests/test_events.py", line 980, in test_read_pty_output
>     self.loop.run_until_complete(connect())
>   File "/Users/haypo/prog/HG/tulip/asyncio/base_events.py", line 177,
> in run_until_complete
>     return future.result()
>   File "/Users/haypo/prog/HG/tulip/asyncio/futures.py", line 236, in result
>     raise self._exception
>   File "/Users/haypo/prog/HG/tulip/asyncio/tasks.py", line 281, in _step
>     result = next(coro)
>   File "tests/test_events.py", line 974, in connect
>     master_read_obj)
>   File "/Users/haypo/prog/HG/tulip/asyncio/base_events.py", line 537,
> in connect_read_pipe
>     transport = self._make_read_pipe_transport(pipe, protocol, waiter)
>   File "/Users/haypo/prog/HG/tulip/asyncio/unix_events.py", line 149,
> in _make_read_pipe_transport
>     return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
>   File "/Users/haypo/prog/HG/tulip/asyncio/unix_events.py", line 200,
> in __init__
>     self._loop.add_reader(self._fileno, self._read_ready)
>   File "/Users/haypo/prog/HG/tulip/asyncio/selector_events.py", line
> 138, in add_reader
>     (handle, None))
>   File "/Users/haypo/prog/HG/tulip/asyncio/selectors.py", line 447, in 
> register
>     self._kqueue.control([kev], 0, 0)
> OSError: [Errno 22] Invalid argument
> ----------------------------------------------------------------------
>
> The test fails in Trollius, Tulip and CPython. These 3 projects share
> at least the same bugs :-)

They pass for me in CPython 3, Tulip and Trollius (with Python 2.7 as
well as 2.6).

-- 
--Guido van Rossum (python.org/~guido)

Reply via email to