File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,17 +387,17 @@ def test_on_rm_rf_error(self, tmp_path):
387
387
# unknown exception
388
388
with pytest .warns (pytest .PytestWarning ):
389
389
exc_info = (None , RuntimeError (), None )
390
- on_rm_rf_error (os .unlink , fn , exc_info , start_path = tmp_path )
390
+ on_rm_rf_error (os .unlink , str ( fn ) , exc_info , start_path = tmp_path )
391
391
assert fn .is_file ()
392
392
393
393
# unknown function
394
394
with pytest .warns (pytest .PytestWarning ):
395
395
exc_info = (None , PermissionError (), None )
396
- on_rm_rf_error (None , fn , exc_info , start_path = tmp_path )
396
+ on_rm_rf_error (None , str ( fn ) , exc_info , start_path = tmp_path )
397
397
assert fn .is_file ()
398
398
399
399
exc_info = (None , PermissionError (), None )
400
- on_rm_rf_error (os .unlink , fn , exc_info , start_path = tmp_path )
400
+ on_rm_rf_error (os .unlink , str ( fn ) , exc_info , start_path = tmp_path )
401
401
assert not fn .is_file ()
402
402
403
403
You can’t perform that action at this time.
0 commit comments