summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ussl_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ussl_basic.py')
-rw-r--r--tests/extmod/ussl_basic.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/extmod/ussl_basic.py b/tests/extmod/ussl_basic.py
index 9f8019a0bc..e8710ed51a 100644
--- a/tests/extmod/ussl_basic.py
+++ b/tests/extmod/ussl_basic.py
@@ -43,6 +43,14 @@ except OSError as er:
# close
ss.close()
+# close 2nd time
+ss.close()
+
+# read on closed socket
+try:
+ ss.read(10)
+except OSError as er:
+ print('read:', repr(er))
# write on closed socket
try: