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().
This commit is contained in:
Paul Sokolovsky 2019-03-01 23:48:16 +03:00 committed by Damien George
parent c76445315f
commit 7b5400134b
2 changed files with 8 additions and 7 deletions

View File

@ -20,12 +20,13 @@ ss = ssl.wrap_socket(socket, server_side=1)
# print # print
print(repr(ss)[:12]) print(repr(ss)[:12])
# setblocking # setblocking() propagates call to the underlying stream object, and
try: # io.BytesIO doesn't have setblocking() (in CPython too).
ss.setblocking(False) #try:
except NotImplementedError: # ss.setblocking(False)
print('setblocking: NotImplementedError') #except NotImplementedError:
ss.setblocking(True) # print('setblocking: NotImplementedError')
#ss.setblocking(True)
# write # write
print(ss.write(b'aaaa')) print(ss.write(b'aaaa'))

View File

@ -1,8 +1,8 @@
ssl_handshake_status: -256 ssl_handshake_status: -256
wrap_socket: OSError(5,) wrap_socket: OSError(5,)
<_SSLSocket <_SSLSocket
setblocking: NotImplementedError
4 4
b'' b''
read: OSError(-261,)
read: OSError(9,) read: OSError(9,)
write: OSError(9,) write: OSError(9,)