[ovs-dev] [PATCH] tests: Avoid printing Python exception for hosts without IPv6 support.

Justin Pettit jpettit at ovn.org
Thu May 24 23:52:43 UTC 2018


> On May 23, 2018, at 3:15 PM, Ben Pfaff <blp at ovn.org> wrote:
> 
> The tests probe whether the host has IPv6 support and, if it doesn't, skip
> the tests that require IPv6.  However, until now, when the host lacks
> support, this caused a Python exception to be printed, like this:
> 
> Traceback (most recent call last):
>  File "<string>", line 3, in <module>
>  File "/usr/lib64/python2.7/socket.py", line 187, in __init__
>    _sock = _realsocket(family, type, proto)
> socket.error: [Errno 97] Address family not supported by protocol
> 
> This exception is expected and harmless, but it reasonably surprised some
> users.  This commit fixes the problem.
> 
> Reported-by: Paul Greenberg
> Reported-at: https://github.com/openvswitch/ovs-issues/issues/146#issuecomment-390081887
> Signed-off-by: Ben Pfaff <blp at ovn.org>

Acked-by: Justin Pettit <jpettit at ovn.org>

--Justin




More information about the dev mailing list