File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ def test_parallel_setitem(self):
78
78
79
79
# parallel setitem
80
80
future = pool .map_async (_set_arange , zip ([arr ] * n , range (n )))
81
- pool .close ()
82
81
results = sorted (future .get (60 ))
82
+ pool .close ()
83
83
pool .terminate ()
84
84
85
85
print (results )
@@ -96,8 +96,8 @@ def test_parallel_append(self):
96
96
97
97
# parallel append
98
98
future = pool .map_async (_append , zip ([arr ] * n , range (n )))
99
- pool .close ()
100
99
results = sorted (future .get (60 ))
100
+ pool .close ()
101
101
pool .terminate ()
102
102
103
103
print (results )
@@ -189,8 +189,8 @@ def test_parallel_create_group(self):
189
189
n = 100
190
190
future = pool .map_async (
191
191
_create_group , zip ([g ] * n , [str (i ) for i in range (n )]))
192
- pool .close ()
193
192
results = sorted (future .get (60 ))
193
+ pool .close ()
194
194
pool .terminate ()
195
195
196
196
print (results )
@@ -206,8 +206,8 @@ def test_parallel_require_group(self):
206
206
n = 100
207
207
future = pool .map_async (
208
208
_require_group , zip ([g ] * n , [str (i // 10 ) for i in range (n )]))
209
- pool .close ()
210
209
results = sorted (future .get (60 ))
210
+ pool .close ()
211
211
pool .terminate ()
212
212
213
213
print (results )
You can’t perform that action at this time.
0 commit comments