summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/net_inet/tls_num_errors.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/net_inet/tls_num_errors.py b/tests/net_inet/tls_num_errors.py
index 34aa2bb45..9c12114ea 100644
--- a/tests/net_inet/tls_num_errors.py
+++ b/tests/net_inet/tls_num_errors.py
@@ -3,15 +3,21 @@
import socket, ssl, sys
try:
- from micropython import alloc_emergency_exception_buf, heap_lock, heap_unlock
+ from micropython import heap_lock, heap_unlock
except:
print("SKIP")
raise SystemExit
+try:
+ from micropython import alloc_emergency_exception_buf
+
+ alloc_emergency_exception_buf(256)
+except:
+ pass
+
# test with heap locked to see it switch to number-only error message
def test(addr):
- alloc_emergency_exception_buf(256)
s = socket.socket()
s.connect(addr)
try: