Skip to content

Commit 35c0532

Browse files
committed
last fixes
1 parent b2962e2 commit 35c0532

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/test_mpiexecspawner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_execute_task_parallel(self):
503503

504504
class TestFuturePoolCache(unittest.TestCase):
505505
def tearDown(self):
506-
shutil.rmtree("./file")
506+
shutil.rmtree("./cache")
507507

508508
@unittest.skipIf(
509509
skip_h5py_test, "h5py is not installed, so the h5py tests are skipped."
@@ -519,7 +519,7 @@ def test_execute_task_cache(self):
519519
cores=1,
520520
openmpi_oversubscribe=False,
521521
spawner=MpiExecSpawner,
522-
cache_directory="./file",
522+
cache_directory="./cache",
523523
)
524524
self.assertEqual(f.result(), 1)
525525
q.join()
@@ -538,6 +538,6 @@ def test_execute_task_cache_failed_no_argument(self):
538538
cores=1,
539539
openmpi_oversubscribe=False,
540540
spawner=MpiExecSpawner,
541-
cache_directory="./file",
541+
cache_directory="./cache",
542542
)
543543
q.join()

tests/test_singlenodeexecutor_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_error(a):
2222
)
2323
class TestCacheFunctions(unittest.TestCase):
2424
def test_cache_data(self):
25-
cache_directory = "./file"
25+
cache_directory = "./cache"
2626
with SingleNodeExecutor(cache_directory=cache_directory) as exe:
2727
future_lst = [exe.submit(sum, [i, i]) for i in range(1, 4)]
2828
result_lst = [f.result() for f in future_lst]

tests/test_singlenodeexecutor_mpi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_errors(self):
8383

8484
class TestExecutorBackendCache(unittest.TestCase):
8585
def tearDown(self):
86-
shutil.rmtree("./file")
86+
shutil.rmtree("./cache")
8787

8888
@unittest.skipIf(
8989
skip_mpi4py_test, "mpi4py is not installed, so the mpi4py tests are skipped."
@@ -93,7 +93,7 @@ def test_meta_executor_parallel_cache(self):
9393
max_workers=2,
9494
resource_dict={"cores": 2},
9595
block_allocation=True,
96-
cache_directory="./file",
96+
cache_directory="./cache",
9797
) as exe:
9898
cloudpickle_register(ind=1)
9999
time_1 = time.time()

0 commit comments

Comments
 (0)