Skip to content

Commit aac55d7

Browse files
suppress warning in test-io
Closes #1161
1 parent 10efce2 commit aac55d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testthat/test-io.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ test_that("non-ASCII characters are handled properly for text styling", {
66

77

88
test_that("non-ASCII characters are handled properly for file styling", {
9-
skip_if(.Platform$OS.type != "windows")
10-
9+
# to avoid warnings
10+
# on unix: 'OS reports request to set locale to "English_United States.1252" cannot be honored'
11+
# on win: 'using locale code page other than 65001 ("UTF-8") may cause problems'
12+
withr::local_options(list(warn = -1L))
1113
withr::with_locale(
1214
c(LC_CTYPE = "English_United States.1252"),
1315
{

0 commit comments

Comments
 (0)