Skip to content

Commit

Permalink
use utils::removeSource instead of rlang::zap_srcref
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Nov 5, 2024
1 parent f2d1668 commit 00fecec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-method-dispatch.R
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ test_that("errors from dispatched methods have reasonable tracebacks", {
x <- sys.calls()
x <- x[-length(x)] # remove get_call_stack()
x <- tail(x, n)
lapply(x, rlang::zap_srcref)
lapply(x, utils::removeSource)
}

my_generic <- new_generic("my_generic", "x")
Expand Down

0 comments on commit 00fecec

Please sign in to comment.