Skip to content

test.data.table() creates DT in .GlobalEnv #5514

@mattdowle

Description

@mattdowle

It shouldn't be touching .GlobalEnv

> require(data.table)  # 1.14.4 and before
> DT
Error: object 'DT' not found   # correct error
> test.data.table()
All 10039 tests (last 2163) in tests/tests.Rraw.bz2 completed ok in 36.8s elapsed (48.6s cpu)
> DT
   a
1: 1

Tests are already run in their own environment to isolate from .GobalEnv. That works well. But test 2036 uses source() which needs a local=TRUE adding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions