Skip to content

Commit 76fa556

Browse files
committed
Remove cycle test now they are no longer possible
Fixes: ``` ── Error ('test-eval-tidy.R:468:3'): eval_tidy() does not infloop when the quosure inherits from the mask ── Error in `eval_tidy(quo, mask)`: cycles in parent chains are not allowed Backtrace: ▆ 1. ├─testthat::expect_identical(eval_tidy(quo, mask), 1) at test-eval-tidy.R:468:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─rlang::eval_tidy(quo, mask) ```
1 parent 3b6ba24 commit 76fa556

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/testthat/test-eval-tidy.R

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -487,21 +487,6 @@ test_that("can't take the names() and length() of the `.data` pronoun", {
487487
expect_named(pronoun, chr())
488488
})
489489

490-
test_that("eval_tidy() does not infloop when the quosure inherits from the mask", {
491-
# New r-devel error: cycles in parent chains are not allowed
492-
skip_if(getRversion() >= "4.4.0" && grepl("devel", R.version$status))
493-
494-
mask <- as_data_mask(list(foo = 1))
495-
quo <- new_quosure(quote(foo), mask)
496-
expect_identical(eval_tidy(quo, mask), 1)
497-
498-
top <- env(foo = 1)
499-
bottom <- env(top)
500-
mask <- new_data_mask(bottom, top)
501-
quo <- new_quosure(quote(foo), top)
502-
expect_identical(eval_tidy(quo, mask), 1)
503-
})
504-
505490
test_that(".data pronoun handles promises (#908)", {
506491
e <- env()
507492
env_bind_lazy(e, a = c(1))

0 commit comments

Comments
 (0)