Skip failing tests on Windows. (#10139)

This commit is contained in:
Robert Nishihara
2020-08-17 18:56:17 -07:00
committed by GitHub
parent 927a073226
commit d45418936c
5 changed files with 10 additions and 4 deletions
+2
View File
@@ -7,12 +7,14 @@ import pytest
TYPING_TEST_DIRS = os.path.join(os.path.dirname(__file__), "typing_files")
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
def test_typing_good():
script = os.path.join(TYPING_TEST_DIRS, "check_typing_good.py")
msg, _, status_code = mypy_api.run([script])
assert status_code == 0, msg
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
def test_typing_bad():
script = os.path.join(TYPING_TEST_DIRS, "check_typing_bad.py")
msg, _, status_code = mypy_api.run([script])