@@ -74,7 +74,7 @@ def slowly_returns_dynamic(dynamic_arg):
7474 return dynamic_arg
7575
7676 dynamic_dynamic = slowly_returns_dynamic ()
77- executor = Executor (hostname_localhost = True , block_allocation = True )
77+ executor = Executor (block_allocation = True )
7878 cloudpickle_register (ind = 1 )
7979 dynamic_object = does_nothing ()
8080 fs = executor .submit (dynamic_dynamic .run , dynamic_object )
@@ -104,7 +104,7 @@ def slowly_returns_42():
104104 self .assertIsNone (
105105 dynamic_42 .result , msg = "Just a sanity check that the test is set up right"
106106 )
107- executor = Executor (hostname_localhost = True , block_allocation = True )
107+ executor = Executor (block_allocation = True )
108108 cloudpickle_register (ind = 1 )
109109 fs = executor .submit (dynamic_42 .run )
110110 fs .add_done_callback (dynamic_42 .process_result )
@@ -135,7 +135,7 @@ def returns_42():
135135 dynamic_42 .running ,
136136 msg = "Sanity check that the test starts in the expected condition" ,
137137 )
138- executor = Executor (hostname_localhost = True , block_allocation = True )
138+ executor = Executor (block_allocation = True )
139139 cloudpickle_register (ind = 1 )
140140 fs = executor .submit (dynamic_42 .run )
141141 fs .add_done_callback (dynamic_42 .process_result )
@@ -159,7 +159,7 @@ def raise_error():
159159 raise RuntimeError
160160
161161 re = raise_error ()
162- executor = Executor (hostname_localhost = True , block_allocation = True )
162+ executor = Executor (block_allocation = True )
163163 cloudpickle_register (ind = 1 )
164164 fs = executor .submit (re .run )
165165 with self .assertRaises (
@@ -189,7 +189,7 @@ def slowly_returns_dynamic():
189189 return inside_variable
190190
191191 dynamic_dynamic = slowly_returns_dynamic ()
192- executor = Executor (hostname_localhost = True , block_allocation = True )
192+ executor = Executor (block_allocation = True )
193193 cloudpickle_register (ind = 1 )
194194 fs = executor .submit (dynamic_dynamic .run )
195195 self .assertIsInstance (
@@ -218,7 +218,7 @@ def slow():
218218 return fortytwo
219219
220220 f = slow ()
221- executor = Executor (hostname_localhost = True , block_allocation = True )
221+ executor = Executor (block_allocation = True )
222222 cloudpickle_register (ind = 1 )
223223 fs = executor .submit (f .run )
224224 self .assertEqual (
0 commit comments