We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400306a commit c9a4f1aCopy full SHA for c9a4f1a
tests/testthat/test-write.R
@@ -96,12 +96,18 @@ test_that("write_utf8() respects line ending", {
96
97
test_that("write_utf8() can operate outside of a project", {
98
tmpdir <- file_temp()
99
- on.exit(dir_delete(tmpdir))
100
dir_create(tmpdir)
+ # doing this "by hand" vs. via withr because Windows appears to be unwilling
101
+ # to delete current working directory
102
+ oldwd <- setwd(tmpdir)
103
+ on.exit({
104
+ setwd(oldwd)
105
+ dir_delete(tmpdir)
106
+ })
107
- withr::local_dir(tmpdir)
108
local_project(NULL)
109
110
expect_false(proj_active())
111
expect_error_free(write_utf8(path = "foo", letters[1:3]))
112
+
113
})
0 commit comments