From: Benjamin Peterson Date: Wed, 20 Aug 2014 19:51:11 +0000 (-0500) Subject: expect socket.error instead of the py3ism OSError X-Git-Tag: v2.7.9rc1~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68482fb53b728f768b53f8f0be34b3c2bb1c779b;p=thirdparty%2FPython%2Fcpython.git expect socket.error instead of the py3ism OSError --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index c1c8799c1af9..26b8e444b91f 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -473,7 +473,7 @@ def _is_ipv6_enabled(): sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) sock.bind((HOSTv6, 0)) return True - except OSError: + except socket.error: pass finally: if sock: