blob: 2863e1dec12a451b52d41c7bbc9eea5ce73912a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# test raising exception within thread which is not caught
import utime
import _thread
def thread_entry():
raise ValueError
_thread.start_new_thread(thread_entry, ())
utime.sleep(1)
print("done")
|