summaryrefslogtreecommitdiffstatshomepage
path: root/tests/thread/thread_start2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/thread_start2.py')
-rw-r--r--tests/thread/thread_start2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/thread/thread_start2.py b/tests/thread/thread_start2.py
index 4efa808eb9..d0913e37cd 100644
--- a/tests/thread/thread_start2.py
+++ b/tests/thread/thread_start2.py
@@ -16,4 +16,11 @@ _thread.start_new_thread(thread_entry, (10, 20), {'a2': 0, 'a3': 1})
# wait for thread to finish
time.sleep(1)
+
+# incorrect argument where dictionary is needed for keyword args
+try:
+ _thread.start_new_thread(thread_entry, (), ())
+except TypeError:
+ print('TypeError')
+
print('done')