Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warning in test-io #1169

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/testthat/test-io.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ test_that("non-ASCII characters are handled properly for text styling", {


test_that("non-ASCII characters are handled properly for file styling", {
skip_if(.Platform$OS.type != "windows")

# to avoid warnings
# on unix: 'OS reports request to set locale to "English_United States.1252" cannot be honored'
# on win: 'using locale code page other than 65001 ("UTF-8") may cause problems'
withr::local_options(list(warn = -1L))
withr::with_locale(
c(LC_CTYPE = "English_United States.1252"),
{
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/tests-cache-require-serial.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test_that("top-level test: Caches top-level expressions efficiently on style_tex
partially_cached_benchmark["elapsed"] * 1.5,
not_cached_benchmark["elapsed"]
)
expect_lt(full_cached_benchmark["elapsed"] * 30, benchmark["elapsed"])
expect_lt(full_cached_benchmark["elapsed"] * 20, benchmark["elapsed"])
})


Expand Down
Loading