[pypy-commit] pypy default: For some reason the errno is now the winsock error code (on CPython as well)
amauryfa
noreply at buildbot.pypy.org
Thu Aug 18 00:18:08 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r46578:44326fa96355
Date: 2011-08-18 00:20 +0200
http://bitbucket.org/pypy/pypy/changeset/44326fa96355/
Log: For some reason the errno is now the winsock error code (on CPython
as well)
diff --git a/pypy/module/_ssl/test/test_ssl.py b/pypy/module/_ssl/test/test_ssl.py
--- a/pypy/module/_ssl/test/test_ssl.py
+++ b/pypy/module/_ssl/test/test_ssl.py
@@ -70,7 +70,7 @@
ss = _ssl.sslwrap(s, 0)
exc = raises(_socket.error, ss.do_handshake)
if sys.platform == 'win32':
- assert exc.value.errno == 2 # Cannot find file (=not a socket)
+ assert exc.value.errno == 10057 # WSAENOTCONN
else:
assert exc.value.errno == 32 # Broken pipe
del exc, ss, s
More information about the pypy-commit
mailing list