Skip to content

Commit 100a425

Browse files
committed
GH-48145: [R] Update to testthat 3.3.0 and use its expect_r6_class()
Generated-by: Claude
1 parent aea1ad3 commit 100a425

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

r/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Suggests:
6868
stringi,
6969
stringr,
7070
sys,
71-
testthat (>= 3.1.0),
71+
testthat (>= 3.3.0),
7272
tibble,
7373
tzdb,
7474
withr

r/tests/testthat/helper-expectation.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ expect_equal_data_frame <- function(x, y, ...) {
2424
expect_equal(as.data.frame(x), as.data.frame(y), ...)
2525
}
2626

27-
expect_r6_class <- function(object, class) {
28-
expect_s3_class(object, class)
29-
expect_s3_class(object, "R6")
30-
}
31-
3227
#' Mask `testthat::expect_equal()` in order to compare ArrowObjects using their
3328
#' `Equals` methods from the C++ library.
3429
expect_equal <- function(object, expected, ignore_attr = FALSE, ..., info = NULL, label = NULL) {

0 commit comments

Comments
 (0)