tests/thread: Improve modthread.c test coverage.

This commit is contained in:
Rami Ali
2016-12-29 13:12:06 +11:00
committed by Damien George
parent c15ebf7c8c
commit f397e1fdf0
4 changed files with 23 additions and 1 deletions

View 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')