@@ -39,7 +39,6 @@ def set_global():
3939class TestSlurmBackend (unittest .TestCase ):
4040 def test_slurm_executor_serial (self ):
4141 with SlurmJobExecutor (
42- max_cores = 2 ,
4342 block_allocation = True ,
4443 ) as exe :
4544 fs_1 = exe .submit (calc , 1 )
@@ -51,7 +50,6 @@ def test_slurm_executor_serial(self):
5150
5251 def test_slurm_executor_serial_no_depencies (self ):
5352 with SlurmJobExecutor (
54- max_cores = 2 ,
5553 block_allocation = True ,
5654 disable_dependencies = True ,
5755 ) as exe :
@@ -64,7 +62,6 @@ def test_slurm_executor_serial_no_depencies(self):
6462
6563 def test_slurm_executor_threads (self ):
6664 with SlurmJobExecutor (
67- max_cores = 1 ,
6865 resource_dict = {"threads_per_core" : 2 },
6966 block_allocation = True ,
7067 ) as exe :
@@ -77,7 +74,6 @@ def test_slurm_executor_threads(self):
7774
7875 def test_slurm_executor_parallel (self ):
7976 with SlurmJobExecutor (
80- max_cores = 2 ,
8177 resource_dict = {"cores" : 2 },
8278 block_allocation = True ,
8379 ) as exe :
@@ -87,7 +83,6 @@ def test_slurm_executor_parallel(self):
8783
8884 def test_single_task (self ):
8985 with SlurmJobExecutor (
90- max_cores = 2 ,
9186 resource_dict = {"cores" : 2 },
9287 block_allocation = True ,
9388 ) as p :
@@ -99,7 +94,6 @@ def test_single_task(self):
9994
10095 def test_internal_memory (self ):
10196 with SlurmJobExecutor (
102- max_cores = 1 ,
10397 resource_dict = {"cores" : 1 },
10498 init_function = set_global ,
10599 block_allocation = True ,
@@ -108,11 +102,3 @@ def test_internal_memory(self):
108102 self .assertFalse (f .done ())
109103 self .assertEqual (f .result (), np .array ([5 ]))
110104 self .assertTrue (f .done ())
111-
112- def test_validate_max_workers (self ):
113- with self .assertRaises (ValueError ):
114- SlurmJobExecutor (
115- max_workers = 10 ,
116- resource_dict = {"cores" : 10 , "threads_per_core" : 10 },
117- block_allocation = True ,
118- )
0 commit comments