From db2dd6d9f30b347f4ed22b07f59b5a615184fbfd Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 24 Aug 2021 16:24:55 -0700 Subject: [PATCH] Skip this test on Windows --- tests/test_insert_files.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_insert_files.py b/tests/test_insert_files.py index 3c188bc..86ee4e3 100644 --- a/tests/test_insert_files.py +++ b/tests/test_insert_files.py @@ -3,6 +3,7 @@ from click.testing import CliRunner import os import pathlib import pytest +import sys @pytest.mark.parametrize("silent", (False, True)) @@ -130,6 +131,10 @@ def test_insert_files_stdin(use_text, encoding, input, expected): assert {"path": "stdin-name", key: expected}.items() <= row.items() +@pytest.mark.skipif( + sys.platform.startswith("win"), + reason="Windows has a different way of handling default encodings", +) def test_insert_files_bad_text_encoding_error(): runner = CliRunner() with runner.isolated_filesystem():