summaryrefslogtreecommitdiff
path: root/tests/thread/thread_exc2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/thread_exc2.py')
-rw-r--r--tests/thread/thread_exc2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/thread/thread_exc2.py b/tests/thread/thread_exc2.py
index 35cb32441..2863e1dec 100644
--- a/tests/thread/thread_exc2.py
+++ b/tests/thread/thread_exc2.py
@@ -2,9 +2,11 @@
import utime
import _thread
+
def thread_entry():
raise ValueError
+
_thread.start_new_thread(thread_entry, ())
utime.sleep(1)
-print('done')
+print("done")