Skip to content

Commit 26efd21

Browse files
committed
Skip base graphics test on old R
1 parent 262e6ac commit 26efd21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testthat/test-expectations.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ test_that("Duplicated expectations issue warning", {
2121

2222
test_that("Doppelgangers pass", {
2323
ggplot_result <- subset_results(test_results, "test-passed.R", "ggplot doppelgangers pass")[[1]]
24-
base_result <- subset_results(test_results, "test-passed.R", "base doppelgangers pass")[[1]]
2524
expect_is(ggplot_result, "expectation_success")
25+
26+
# Test seems to depend on new engine
27+
skip_if(getRversion() < "4.1.0")
28+
29+
base_result <- subset_results(test_results, "test-passed.R", "base doppelgangers pass")[[1]]
2630
expect_is(base_result, "expectation_success")
2731
})
2832

0 commit comments

Comments
 (0)