summaryrefslogtreecommitdiff
path: root/tests/extmod/tls_threads.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-09-14 11:50:29 +1000
committerDamien George <damien@micropython.org>2025-10-01 23:59:05 +1000
commita3a2b9e9738332eb9033bc1c227c9a69e9476e97 (patch)
treee8bcfdd91e53cd7a9afdff73c9505a4ee025c71b /tests/extmod/tls_threads.py
parentc176fe8702cd806cbd0981234a4d7328e37b1673 (diff)
tests/extmod: Improve skip detection of extmod tests.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/tls_threads.py')
-rw-r--r--tests/extmod/tls_threads.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/extmod/tls_threads.py b/tests/extmod/tls_threads.py
index 4564abd3d..1e0c3d23d 100644
--- a/tests/extmod/tls_threads.py
+++ b/tests/extmod/tls_threads.py
@@ -1,6 +1,5 @@
# Ensure that SSL sockets can be allocated from multiple
# threads without thread safety issues
-import unittest
try:
import _thread
@@ -11,6 +10,8 @@ except ImportError:
print("SKIP")
raise SystemExit
+import unittest
+
class TestSocket(io.IOBase):
def write(self, buf):