Skip to content

Commit

Permalink
Use local_package_copy() for test writing to test path
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 26, 2024
1 parent 9652d15 commit adddc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-namespace.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ test_that("rawNamespace inserted unchanged", {
})

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

lines_orig <- read_lines(NAMESPACE)
Expand Down

0 comments on commit adddc1c

Please sign in to comment.