Skip to content

Commit cfc7665

Browse files
plan("list"): temporary patch for future.tests::db_state() for future.tests (<= 0.8.0) - take 3
1 parent ed86d2f commit cfc7665

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.34.0-9370
2+
Version: 1.34.0-9371
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/utils_api-plan.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,14 @@ plan <- local({
476476
} else if (n > 1L && (calls[[n - 1L]][[1]] != "db_state")) {
477477
patch <- TRUE
478478
}
479+
479480
if (patch) {
480481
ignore <- c("init", "backend")
482+
## Prune 'class' attribute
481483
class <- class(stack)
482484
stack <- lapply(stack, FUN = function(s) {
485+
## Prune 'class' attribute
486+
class(s) <- setdiff(class(s), "FutureStrategy")
483487
for (name in ignore) attr(s, name) <- NULL
484488
s
485489
})

0 commit comments

Comments
 (0)