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