Skip to content

Some tests fail on Windows with UnicodeDecodeError #1352

Description

@denyshon

When running make test:

  • test_input_paths_is_treated_as_list fails with UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 617: character maps to <undefined>
  • test_compendium_with_comment fails with UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 711: character maps to <undefined>

That's because the tests expect UTF-8, but Windows defaults to ANSI. To prevent this from happening, we should explicitly specify the encoding when running tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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