@@ -358,7 +358,7 @@ def test_odir_init():
358358# Tests for tasks without state (i.e. no splitter)
359359
360360
361- @pytest .mark .flaky (reruns = 2 ) # when dask
361+ @pytest .mark .flaky (max_runs = 2 ) # when dask
362362def test_task_nostate_1 (plugin_dask_opt , tmp_path ):
363363 """task without splitter"""
364364 nn = fun_addtwo (name = "NA" , a = 3 )
@@ -399,7 +399,7 @@ def test_task_nostate_1_call():
399399 assert nn .output_dir .exists ()
400400
401401
402- @pytest .mark .flaky (reruns = 2 ) # when dask
402+ @pytest .mark .flaky (max_runs = 2 ) # when dask
403403def test_task_nostate_1_call_subm (plugin_dask_opt , tmp_path ):
404404 """task without splitter"""
405405 nn = fun_addtwo (name = "NA" , a = 3 )
@@ -417,7 +417,7 @@ def test_task_nostate_1_call_subm(plugin_dask_opt, tmp_path):
417417 assert nn .output_dir .exists ()
418418
419419
420- @pytest .mark .flaky (reruns = 2 ) # when dask
420+ @pytest .mark .flaky (max_runs = 2 ) # when dask
421421def test_task_nostate_1_call_plug (plugin_dask_opt , tmp_path ):
422422 """task without splitter"""
423423 nn = fun_addtwo (name = "NA" , a = 3 )
@@ -549,7 +549,7 @@ def test_task_nostate_7():
549549# Testing caching for tasks without states
550550
551551
552- @pytest .mark .flaky (reruns = 2 ) # when dask
552+ @pytest .mark .flaky (max_runs = 2 ) # when dask
553553def test_task_nostate_cachedir (plugin_dask_opt , tmp_path ):
554554 """task with provided cache_dir using pytest tmp_path"""
555555 cache_dir = tmp_path / "test_task_nostate"
@@ -566,7 +566,7 @@ def test_task_nostate_cachedir(plugin_dask_opt, tmp_path):
566566 assert results .output .out == 5
567567
568568
569- @pytest .mark .flaky (reruns = 2 ) # when dask
569+ @pytest .mark .flaky (max_runs = 2 ) # when dask
570570def test_task_nostate_cachedir_relativepath (tmp_path , plugin_dask_opt ):
571571 """task with provided cache_dir as relative path"""
572572 os .chdir (tmp_path )
@@ -587,7 +587,7 @@ def test_task_nostate_cachedir_relativepath(tmp_path, plugin_dask_opt):
587587 shutil .rmtree (cache_dir )
588588
589589
590- @pytest .mark .flaky (reruns = 2 ) # when dask
590+ @pytest .mark .flaky (max_runs = 2 ) # when dask
591591def test_task_nostate_cachelocations (plugin_dask_opt , tmp_path ):
592592 """
593593 Two identical tasks with provided cache_dir;
@@ -729,7 +729,7 @@ def test_task_nostate_cachelocations_updated(plugin, tmp_path):
729729# Tests for tasks with states (i.e. with splitter)
730730
731731
732- @pytest .mark .flaky (reruns = 2 ) # when dask
732+ @pytest .mark .flaky (max_runs = 2 ) # when dask
733733@pytest .mark .parametrize ("input_type" , ["list" , "array" ])
734734def test_task_state_1 (plugin_dask_opt , input_type , tmp_path ):
735735 """task with the simplest splitter"""
@@ -1074,7 +1074,7 @@ def test_task_state_6a(plugin, tmp_path):
10741074 assert odir .exists ()
10751075
10761076
1077- @pytest .mark .flaky (reruns = 2 ) # when dask
1077+ @pytest .mark .flaky (max_runs = 2 ) # when dask
10781078def test_task_state_comb_1 (plugin_dask_opt , tmp_path ):
10791079 """task with the simplest splitter and combiner"""
10801080 nn = fun_addtwo (name = "NA" ).split (a = [3 , 5 ], splitter = "a" ).combine (combiner = "a" )
@@ -1451,7 +1451,7 @@ def test_task_state_comb_contdim_2(tmp_path):
14511451# Testing caching for tasks with states
14521452
14531453
1454- @pytest .mark .flaky (reruns = 2 ) # when dask
1454+ @pytest .mark .flaky (max_runs = 2 ) # when dask
14551455def test_task_state_cachedir (plugin_dask_opt , tmp_path ):
14561456 """task with a state and provided cache_dir using pytest tmp_path"""
14571457 cache_dir = tmp_path / "test_task_nostate"
0 commit comments