summaryrefslogtreecommitdiffstatshomepage
path: root/tests/thread/thread_exit2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/thread_exit2.py')
-rw-r--r--tests/thread/thread_exit2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/thread/thread_exit2.py b/tests/thread/thread_exit2.py
index 368a11bba4..0cd80e6909 100644
--- a/tests/thread/thread_exit2.py
+++ b/tests/thread/thread_exit2.py
@@ -8,12 +8,14 @@ except ImportError:
import time
import _thread
+
def thread_entry():
raise SystemExit
+
_thread.start_new_thread(thread_entry, ())
_thread.start_new_thread(thread_entry, ())
# wait for threads to finish
time.sleep(1)
-print('done')
+print("done")