summaryrefslogtreecommitdiffstatshomepage
path: root/tests/thread/thread_exc2.py
blob: 35cb32441204e46cd0865c9f6f4e2b4d0b2db45f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# 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')