[Python-checkins] cpython (2.7): expect socket.error instead of the py3ism OSError
benjamin.peterson
python-checkins at python.org
Wed Aug 20 21:51:27 CEST 2014
http://hg.python.org/cpython/rev/ad7ac2a469e1
changeset: 92167:ad7ac2a469e1
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Wed Aug 20 14:51:11 2014 -0500
summary:
expect socket.error instead of the py3ism OSError
files:
Lib/test/test_support.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -473,7 +473,7 @@
sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
sock.bind((HOSTv6, 0))
return True
- except OSError:
+ except socket.error:
pass
finally:
if sock:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list