File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111from executorlib .standalone .thread import RaisingThread
1212
1313try :
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 (
You can’t perform that action at this time.
0 commit comments