From a02e36878c55c0fef876433eb2686f57c4a7c972 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 30 Sep 2025 13:44:18 -0400 Subject: [PATCH] Fix for testthat 3.3.0 `expectation()` now creates and signals; you need to use `new_expectation()` now. --- R/expectation.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/expectation.R b/R/expectation.R index 72069f4..bf0c717 100644 --- a/R/expectation.R +++ b/R/expectation.R @@ -70,7 +70,7 @@ expect_custom <- function(ok, } } - exp <- expectation(type, message, srcref = srcref, trace = trace) + exp <- new_expectation(type, message, srcref = srcref, trace = trace) exp[["custom"]] <- list(...) exp_signal(exp)