> -----Mesaj original-----
> De la: dev [mailto:dev-boun...@openvswitch.org] În numele Paul Boca
> Trimis: Friday, July 15, 2016 5:21 PM
> Către: dev@openvswitch.org
> Subiect: [ovs-dev] [PATCH V7 09/16] python tests: Fixed OSError not iterable
> on Windows
>
> On Windows if this exception is triggered then it will raise an exception
> while
> in the exception handler.
>
> Signed-off-by: Paul-Daniel Boca <pb...@cloudbasesolutions.com>
> import select
> import socket
> +import os
[Alin Gabriel Serdean: ] I don't think you need import os for OSError, so
probably it can be removed.
>
> try:
> import eventlet.patcher
> @@ -168,6 +169,10 @@ class Poller(object):
> try:
> events = self.poll.poll(self.timeout)
> self.__log_wakeup(events)
> + except OSError as e:
> + error = e.errno
> + if error != errno.EINTR:
> + vlog.err("poll: %s" % os.strerror(e.errno))
[Alin Gabriel Serdean: ] As discussed offline you are getting the exception
because you have an empty list for the select. I am ok with trying to catch it
for the moment but please add a comment so we will know in the future.
> except select.error as e:
> # XXX rate-limit
> error, msg = e
> --
> 2.7.2.windows.1
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev