File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ def is_local_file(f):
537
537
538
538
def is_existing_file (value ):
539
539
""" checking if an object is an existing file"""
540
- if value is "" :
540
+ if isinstance ( value , str ) and value == "" :
541
541
return False
542
542
try :
543
543
return Path (value ).exists ()
Original file line number Diff line number Diff line change @@ -991,6 +991,7 @@ def test_task_state_6a(plugin):
991
991
assert odir .exists ()
992
992
993
993
994
+ @pytest .mark .flaky (reruns = 2 ) # when dask
994
995
def test_task_state_comb_1 (plugin_dask_opt ):
995
996
""" task with the simplest splitter and combiner"""
996
997
nn = fun_addtwo (name = "NA" ).split (a = [3 , 5 ], splitter = "a" ).combine (combiner = "a" )
@@ -1279,6 +1280,7 @@ def test_task_state_comb_order():
1279
1280
# Testing caching for tasks with states
1280
1281
1281
1282
1283
+ @pytest .mark .flaky (reruns = 2 ) # when dask
1282
1284
def test_task_state_cachedir (plugin_dask_opt , tmpdir ):
1283
1285
""" task with a state and provided cache_dir using pytest tmpdir"""
1284
1286
cache_dir = tmpdir .mkdir ("test_task_nostate" )
You can’t perform that action at this time.
0 commit comments