circuitpython/tests/thread/thread_exc2.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
202 B
Python
Raw Normal View History

# 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")