diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2019-03-01 23:48:16 +0300 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-04-30 17:27:28 +1000 |
commit | 7b5400134b6d121741234cc99313145c0edf28c2 (patch) | |
tree | c1443737d73b03d185fbf4e1520f26f013d26bc4 /tests/extmod/ussl_basic.py | |
parent | c76445315f836eb75835814ebe97e14107adbf0f (diff) |
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().
Diffstat (limited to 'tests/extmod/ussl_basic.py')
-rw-r--r-- | tests/extmod/ussl_basic.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/extmod/ussl_basic.py b/tests/extmod/ussl_basic.py index e8710ed51..a040fc20c 100644 --- a/tests/extmod/ussl_basic.py +++ b/tests/extmod/ussl_basic.py @@ -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')) |