Commit 7b540013 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George

tests/ussl_basic: Disable setblocking() calls.

Now that setblocking() is implemented in modussl_axtls, it calls into the
underlying stream object, and io.BytesIO doesn't have setblocking().
parent c7644531
......@@ -20,12 +20,13 @@ ss = ssl.wrap_socket(socket, server_side=1)
# print
print(repr(ss)[:12])
# setblocking
try:
ss.setblocking(False)
except NotImplementedError:
print('setblocking: NotImplementedError')
ss.setblocking(True)
# setblocking() propagates call to the underlying stream object, and
# io.BytesIO doesn't have setblocking() (in CPython too).
#try:
# ss.setblocking(False)
#except NotImplementedError:
# print('setblocking: NotImplementedError')
#ss.setblocking(True)
# write
print(ss.write(b'aaaa'))
......
ssl_handshake_status: -256
wrap_socket: OSError(5,)
<_SSLSocket
setblocking: NotImplementedError
4
b''
read: OSError(-261,)
read: OSError(9,)
write: OSError(9,)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment