summaryrefslogtreecommitdiffstatshomepage
path: root/tests/thread/mutate_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/mutate_list.py')
-rw-r--r--tests/thread/mutate_list.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/thread/mutate_list.py b/tests/thread/mutate_list.py
index 764a9bd99e..c1849e6729 100644
--- a/tests/thread/mutate_list.py
+++ b/tests/thread/mutate_list.py
@@ -27,6 +27,7 @@ def th(n, lo, hi):
global n_finished
n_finished += 1
+
lock = _thread.allocate_lock()
n_thread = 4
n_finished = 0