2016-12-28 21:12:06 -05:00
|
|
|
# test raising exception within thread which is not caught
|
|
|
|
import utime
|
|
|
|
import _thread
|
|
|
|
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2016-12-28 21:12:06 -05:00
|
|
|
def thread_entry():
|
|
|
|
raise ValueError
|
|
|
|
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2016-12-28 21:12:06 -05:00
|
|
|
_thread.start_new_thread(thread_entry, ())
|
|
|
|
utime.sleep(1)
|
2021-03-15 09:57:36 -04:00
|
|
|
print("done")
|