Skip to content

Commit

Permalink
Restore #5286 workaround that was dropped in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon committed Dec 7, 2022
1 parent b4ed549 commit 6f70189
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/test.data.table.R
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
setattr(yc,"row.names",NULL)
setattr(xc,"index",NULL) # too onerous to create test RHS with the correct index as well, just check result
setattr(yc,"index",NULL)
setattr(xc,".internal.selfref",NULL) # test 2212
setattr(yc,".internal.selfref",NULL)
setattr(xc,"allow.assign.inplace",NULL) # Following the discussion here: https://github.com/Rdatatable/data.table/pull/4978#pullrequestreview-656062798
setattr(yc,"allow.assign.inplace",NULL)
if (identical(xc,yc) && identical(key(x),key(y))) return(TRUE) # check key on original x and y because := above might have cleared it on xc or yc
Expand Down

0 comments on commit 6f70189

Please sign in to comment.