Skip to content

Commit b3d4e0c

Browse files
committed
Remove test 944.5
1 parent 5f45a47 commit b3d4e0c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,11 +2832,8 @@ test(944.1, DT[, foo:=NULL], DT, warning="Tried to assign NULL to column 'foo',
28322832
test(944.2, DT[,a:=1L], data.table(a=1L)) # can now add columns to an empty data.table from v1.12.2
28332833
test(944.3, DT[,aa:=NULL], data.table(a=1L), warning="Tried to assign NULL to column 'aa', but this column does not exist to remove")
28342834
test(944.4, DT[,a:=NULL], data.table(NULL))
2835-
if (base::getRversion() >= "3.4.0" && base::getRversion() < "4.6.0") {
2836-
test(944.5, typeof(structure(NULL, class=c("data.table","data.frame"))), 'list', warning="deprecated, as NULL cannot have attributes") # R warns which is good and we like
2837-
} else if (base::getRversion() >= "4.6.0" && !is.na(Rsvn <- as.numeric(R.version$`svn rev`)) && Rsvn >= 88075) {
2838-
test(944.5, structure(NULL, class=c("data.table","data.frame")), error = "attempt to set an attribute on NULL")
2839-
}
2835+
# 944.5 used to test base R behaviour regarding structure(NULL, ...), which changed from warning to error in 4.6.0 and isn't used in data.table.
2836+
28402837
DT = data.table(a=numeric())
28412838
test(945, DT[,b:=a+1], data.table(a=numeric(),b=numeric()))
28422839

0 commit comments

Comments
 (0)