Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Oct 18, 2024
1 parent e97ea15 commit 5c4e841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_with_torch_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ test_that("interop threads proper warning message", {
library(torch)
with_torch_settings = getFromNamespace("with_torch_settings", "mlr3torch")
with_torch_settings(NULL, 1, 2, invisible(NULL))
x1 = capture.output(with_torch_settings(NULL, 1, 2, invisible(NULL)), warning = identity)
x2 = capture.output(with_torch_settings(NULL, 1, 1, invisible(NULL)), warning = identity)
x1 = capture.output(with_torch_settings(NULL, 1, 2, invisible(NULL)))
x2 = capture.output(with_torch_settings(NULL, 1, 1, invisible(NULL)))
list(x1, x2)
})
expect_true(length(result[[1]]) == 0)
Expand Down

0 comments on commit 5c4e841

Please sign in to comment.