mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
4216bc7d13
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
13 lines
202 B
Python
13 lines
202 B
Python
# test raising exception within thread which is not caught
|
|
import time
|
|
import _thread
|
|
|
|
|
|
def thread_entry():
|
|
raise ValueError
|
|
|
|
|
|
_thread.start_new_thread(thread_entry, ())
|
|
time.sleep(1)
|
|
print("done")
|