Skip to content

Commit 1775e1f

Browse files
Use local_package_copy() for test writing to test path (#1685)
1 parent 5380ae6 commit 1775e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-namespace.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ test_that("rawNamespace inserted unchanged", {
381381
})
382382

383383
test_that("rawNamespace does not break idempotency", {
384-
test_pkg <- test_path("testRawNamespace")
384+
test_pkg <- local_package_copy(test_path("testRawNamespace"))
385385
NAMESPACE <- file.path(test_pkg, "NAMESPACE")
386386

387387
lines_orig <- read_lines(NAMESPACE)

0 commit comments

Comments
 (0)