Skip to content

Commit cfab9d8

Browse files
committed
more tests
1 parent 67e09a0 commit cfab9d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_cache_executor_serial.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from executorlib.standalone.thread import RaisingThread
1212

1313
try:
14-
from executorlib.cache.executor import FileExecutor
14+
from executorlib.cache.executor import FileExecutor, create_file_executor
1515
from executorlib.cache.shared import execute_tasks_h5
1616

1717
skip_h5py_test = False
@@ -46,6 +46,12 @@ def test_executor_dependence_mixed(self):
4646
self.assertEqual(fs2.result(), 4)
4747
self.assertTrue(fs2.done())
4848

49+
def test_create_file_executor_error(self):
50+
with self.assertRaises(ValueError):
51+
create_file_executor(block_allocation=True)
52+
with self.assertRaises(ValueError):
53+
create_file_executor(init_function=True)
54+
4955
def test_executor_dependence_error(self):
5056
with self.assertRaises(ValueError):
5157
with FileExecutor(

0 commit comments

Comments
 (0)