diff options
Diffstat (limited to 'tests/thread/mutate_bytearray.py')
-rw-r--r-- | tests/thread/mutate_bytearray.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/thread/mutate_bytearray.py b/tests/thread/mutate_bytearray.py index 25f7c7071..f3276f1b2 100644 --- a/tests/thread/mutate_bytearray.py +++ b/tests/thread/mutate_bytearray.py @@ -26,10 +26,11 @@ def th(n, lo, hi): lock = _thread.allocate_lock() n_thread = 4 n_finished = 0 +n_repeat = 4 # use 40 for more stressful test (uses more heap) # spawn threads for i in range(n_thread): - _thread.start_new_thread(th, (40, i * 256 // n_thread, (i + 1) * 256 // n_thread)) + _thread.start_new_thread(th, (n_repeat, i * 256 // n_thread, (i + 1) * 256 // n_thread)) # busy wait for threads to finish while n_finished < n_thread: |