From 68482fb53b728f768b53f8f0be34b3c2bb1c779b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 20 Aug 2014 14:51:11 -0500 Subject: [PATCH] expect socket.error instead of the py3ism OSError --- Lib/test/test_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index c1c8799c1a..26b8e444b9 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: -- 2.50.1