Skip to content

Test suite failure in connection with language setting #142

@tillea

Description

@tillea

Describe the problem

When trying to upgrade the Debian packaged sass from version 0.4.8 to 0.4.9 I get a test suite error.
We are using this test script in our CI which finally calls

LC_ALL=C.UTF-8 R --no-save < testthat.R

This results in the error

── Failure ('test-font-objects.R:131:3'): font_collection() basically works ────
`expect_collection("'foo, bar', baz", quote = FALSE, expected = "'foo, bar', baz")` threw an unexpected warning.
Message: Changing language has no effect when envvar LC_ALL='C.UTF-8'
Class:   simpleWarning/warning/condition
Backtrace:
     ▆
  1. ├─testthat::expect_warning(...) at test-font-objects.R:131:3
  2. │ └─testthat:::expect_condition_matching(...)
  3. │   └─testthat:::quasi_capture(...)
  4. │     ├─testthat (local) .capture(...)
  5. │     │ └─base::withCallingHandlers(...)
  6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  7. └─sass (local) expect_collection("'foo, bar', baz", quote = FALSE, expected = "'foo, bar', baz")
  8.   └─testthat::expect_equal(...) at test-font-objects.R:98:3
  9.     └─testthat:::expect_waldo_equal("equal", act, exp, info, ..., tolerance = tolerance)
 10.       └─testthat:::waldo_compare(...)
 11.         └─testthat:::local_reporter_output()
 12.           └─reporter$local_user_output(.env)
 13.             └─testthat::local_reproducible_output(...)
 14.               └─withr::local_language(lang, .local_envir = .env)
 15.                 └─withr:::check_language_envvar("LC_ALL")
[ FAIL 1 | WARN 307 | SKIP 4 | PASS 188 ]

Session Info

You can find a full build log here

Please let me know if you need further information to track down the issue. In case you can't reproduce the issue the Debian Med team policy contains a hint to a docker file which could be useful to reproduce the problem on a Debian sid system.
Kind regards, Andreas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions