[Python-ideas] PEP 3156/Tulip: Extensible EventLoop interface

Richard Oudkerk shibturn at gmail.com
Wed Feb 6 22:48:37 CET 2013


On 06/02/2013 9:23pm, Yuval Greenfield wrote:
> Strangely, the first time I run the tests I get a big pile of output
> exceptions though the tests do pass. E.g.
>
> .........sss......ss.ERROR:root:Exception in task
> Traceback (most recent call last):
>    File "E:\Dropbox\dev\python\tulip\tulip\tasks.py", line 96, in _step
>      result = coro.send(value)
>    File "E:\Dropbox\dev\python\tulip\tulip\base_events.py", line 235, in
> create_c
> onnection
>      raise exceptions[0]
>    File "E:\Dropbox\dev\python\tulip\tulip\base_events.py", line 226, in
> create_c
> onnection
>      yield self.sock_connect(sock, address)
>    File "c:\python33\lib\unittest\mock.py", line 846, in __call__
>      return _mock_self._mock_call(*args, **kwargs)
>    File "c:\python33\lib\unittest\mock.py", line 901, in _mock_call
>      raise effect
> OSError
> .ERROR:root:Exception in task
> [...]

I see this sometimes too.

It seems that these are expected errors caused by using 
self.assertRaises(...).  Why these errors are logged only sometimes I 
don't understand.

-- 
Richard




More information about the Python-ideas mailing list