mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests/thread: Improve modthread.c test coverage.
This commit is contained in:
10
tests/thread/thread_exc2.py
Normal file
10
tests/thread/thread_exc2.py
Normal file
@@ -0,0 +1,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')
|
||||
Reference in New Issue
Block a user