Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.9
Changeset: r75573:5b9e66ec2e72
Date: 2015-01-28 17:16 -0500
http://bitbucket.org/pypy/pypy/changeset/5b9e66ec2e72/
Log: fix _ssl test_npn_protocol when run -A against cpython
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
@@ -226,7 +226,7 @@
import socket, _ssl, gc
ctx = _ssl._SSLContext(_ssl.PROTOCOL_TLSv1)
ctx._set_npn_protocols(b'\x08http/1.1\x06spdy/2')
- ss = ctx._wrap_socket(self.s, True,
+ ss = ctx._wrap_socket(self.s._sock, True,
server_hostname="svn.python.org")
self.s.close()
del ss; gc.collect()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit