Skip to content

Commit

Permalink
found two more
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jan 31, 2024
1 parent a5b76a8 commit b7a083e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def callback(future):
def submit():
# Executor only exists in this scope and can get garbage collected after
# this function is exits
future = PyMPISingleTaskExecutor().submit(slow_callable)
future = PyMPISingleTaskExecutor(hostname_localhost=True).submit(slow_callable)
future.add_done_callback(callback)
return future

Expand Down
4 changes: 2 additions & 2 deletions tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ def test_meta_executor_parallel(self):

def test_errors(self):
with self.assertRaises(TypeError):
PyMPIExecutor(max_workers=1, cores_per_worker=1, threads_per_core=2)
PyMPIExecutor(max_workers=1, cores_per_worker=1, threads_per_core=2, hostname_localhost=True)
with self.assertRaises(TypeError):
PyMPIExecutor(max_workers=1, cores_per_worker=1, gpus_per_worker=1)
PyMPIExecutor(max_workers=1, cores_per_worker=1, gpus_per_worker=1, hostname_localhost=True)

0 comments on commit b7a083e

Please sign in to comment.