summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2020-02-10 12:33:14 -0800
committerGitHub <noreply@github.com>2020-02-10 12:33:14 -0800
commit85342c9bd1776c5e59f3f1debaf7ade649f5d04f (patch)
tree178252aa4b8209fa93127174e158f9c60dee8405
parentbe6610e627276ac702c79a00d2816988f8e1e0b0 (diff)
parentdd8824d4d8572a0d97029778f5588f3d43819292 (diff)
downloadisort-85342c9bd1776c5e59f3f1debaf7ade649f5d04f.tar.gz
Merge pull request #1129 from timothycrosley/feature/fix_windows_testing
Fix test case to be more explicit
-rw-r--r--tests/test_format.py2
-rw-r--r--tests/test_io.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index 54028724..79b96701 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -5,7 +5,7 @@ from hypothesis_auto import auto_pytest_magic
import isort.format
-auto_pytest_magic(isort.format.show_unified_diff)
+auto_pytest_magic(isort.format.show_unified_diff, auto_allow_exceptions_=(UnicodeEncodeError,))
def test_ask_whether_to_apply_changes_to_file():
diff --git a/tests/test_io.py b/tests/test_io.py
index b0022586..23a6214c 100644
--- a/tests/test_io.py
+++ b/tests/test_io.py
@@ -1,3 +1,4 @@
+import sys
from unittest.mock import MagicMock, patch
import pytest
@@ -6,6 +7,7 @@ from isort import io
class TestFile:
+ @pytest.mark.skipif(sys.platform == "win32", reason="Can't run file encoding test in AppVeyor")
def test_read(self, tmpdir):
test_file_content = """# -*- encoding: ascii -*-