@@ -76,6 +76,7 @@ def slowly_returns_dynamic(dynamic_arg):
76
76
77
77
dynamic_dynamic = slowly_returns_dynamic ()
78
78
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
79
+ self .assertTrue (executor )
79
80
cloudpickle_register (ind = 1 )
80
81
dynamic_object = does_nothing ()
81
82
fs = executor .submit (dynamic_dynamic .run , dynamic_object )
@@ -106,6 +107,7 @@ def slowly_returns_42():
106
107
dynamic_42 .result , msg = "Just a sanity check that the test is set up right"
107
108
)
108
109
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
110
+ self .assertTrue (executor )
109
111
cloudpickle_register (ind = 1 )
110
112
fs = executor .submit (dynamic_42 .run )
111
113
fs .add_done_callback (dynamic_42 .process_result )
@@ -137,6 +139,7 @@ def returns_42():
137
139
msg = "Sanity check that the test starts in the expected condition" ,
138
140
)
139
141
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
142
+ self .assertTrue (executor )
140
143
cloudpickle_register (ind = 1 )
141
144
fs = executor .submit (dynamic_42 .run )
142
145
fs .add_done_callback (dynamic_42 .process_result )
@@ -161,6 +164,7 @@ def raise_error():
161
164
162
165
re = raise_error ()
163
166
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
167
+ self .assertTrue (executor )
164
168
cloudpickle_register (ind = 1 )
165
169
fs = executor .submit (re .run )
166
170
with self .assertRaises (
@@ -191,6 +195,7 @@ def slowly_returns_dynamic():
191
195
192
196
dynamic_dynamic = slowly_returns_dynamic ()
193
197
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
198
+ self .assertTrue (executor )
194
199
cloudpickle_register (ind = 1 )
195
200
fs = executor .submit (dynamic_dynamic .run )
196
201
self .assertIsInstance (
@@ -220,6 +225,7 @@ def slow():
220
225
221
226
f = slow ()
222
227
executor = SingleNodeExecutor (block_allocation = True , max_workers = 1 )
228
+ self .assertTrue (executor )
223
229
cloudpickle_register (ind = 1 )
224
230
fs = executor .submit (f .run )
225
231
self .assertEqual (
0 commit comments