From adddc1cd5028ba76aaef5b34be85d2027045cb25 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 25 Nov 2024 16:26:06 -0800 Subject: [PATCH] Use local_package_copy() for test writing to test path --- tests/testthat/test-namespace.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-namespace.R b/tests/testthat/test-namespace.R index 7bf25dc0..0b90fe56 100644 --- a/tests/testthat/test-namespace.R +++ b/tests/testthat/test-namespace.R @@ -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)