Skip to content

Commit

Permalink
tests: suppress warnings in autotest
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Sep 14, 2024
1 parent 461588a commit 2bf8b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/testthat/helper_autotest.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ run_experiment = function(task, learner, seed = NULL, configure_learner = NULL)
# check train
stage = "train()"

ok = try(learner$train(task), silent = TRUE)
ok = suppressWarnings(try(learner$train(task), silent = TRUE))
if (inherits(ok, "try-error")) {
return(err(as.character(ok)))
}
Expand All @@ -327,7 +327,7 @@ run_experiment = function(task, learner, seed = NULL, configure_learner = NULL)
# check predict
stage = "predict()"

prediction = try(learner$predict(task), silent = TRUE)
prediction = suppressWarnings(try(learner$predict(task), silent = TRUE))
if (inherits(prediction, "try-error")) {
ok = prediction
prediction = NULL
Expand Down

0 comments on commit 2bf8b73

Please sign in to comment.