Skip to content

Commit 69f2244

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9a98132 commit 69f2244

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/test_cache_executor_mpi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def mpi_funct(i):
3131
)
3232
class TestCacheExecutorMPI(unittest.TestCase):
3333
def test_executor(self):
34-
with FileExecutor(resource_dict={"cores": 2}, execute_function=execute_in_subprocess) as exe:
34+
with FileExecutor(
35+
resource_dict={"cores": 2}, execute_function=execute_in_subprocess
36+
) as exe:
3537
fs1 = exe.submit(mpi_funct, 1)
3638
self.assertFalse(fs1.done())
3739
self.assertEqual(fs1.result(), [(1, 2, 0), (1, 2, 1)])

tests/test_cache_executor_serial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def test_executor_dependence_mixed(self):
4848

4949
def test_executor_working_directory(self):
5050
cwd = os.path.join(os.path.dirname(__file__), "executables")
51-
with FileExecutor(resource_dict={"cwd": cwd}, execute_function=execute_in_subprocess) as exe:
51+
with FileExecutor(
52+
resource_dict={"cwd": cwd}, execute_function=execute_in_subprocess
53+
) as exe:
5254
fs1 = exe.submit(list_files_in_working_directory)
5355
self.assertEqual(fs1.result(), os.listdir(cwd))
5456

0 commit comments

Comments
 (0)