From b5b8795e5afbd711cd781232d848ffa3fba91521 Mon Sep 17 00:00:00 2001 From: eleanorjboyd Date: Mon, 26 Feb 2024 13:31:05 -0800 Subject: [PATCH] skip tests, pytest upstream regression --- pythonFiles/tests/pytestadapter/test_discovery.py | 8 ++++++++ pythonFiles/tests/pytestadapter/test_execution.py | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/pythonFiles/tests/pytestadapter/test_discovery.py b/pythonFiles/tests/pytestadapter/test_discovery.py index b28a2b307ae2..a1f4e4f266ae 100644 --- a/pythonFiles/tests/pytestadapter/test_discovery.py +++ b/pythonFiles/tests/pytestadapter/test_discovery.py @@ -18,6 +18,10 @@ from .helpers import TEST_DATA_PATH, runner, runner_with_cwd, create_symlink +@pytest.mark.skipif( + sys.platform == "win32", + reason="See https://github.com/microsoft/vscode-python/issues/22965", +) def test_import_error(tmp_path): """Test pytest discovery on a file that has a pytest marker but does not import pytest. @@ -59,6 +63,10 @@ def test_import_error(tmp_path): assert False +@pytest.mark.skipif( + sys.platform == "win32", + reason="See https://github.com/microsoft/vscode-python/issues/22965", +) def test_syntax_error(tmp_path): """Test pytest discovery on a file that has a syntax error. diff --git a/pythonFiles/tests/pytestadapter/test_execution.py b/pythonFiles/tests/pytestadapter/test_execution.py index dd32b61fa262..614b6f04bce9 100644 --- a/pythonFiles/tests/pytestadapter/test_execution.py +++ b/pythonFiles/tests/pytestadapter/test_execution.py @@ -5,6 +5,7 @@ from typing import Any, Dict, List import pytest +import sys from tests.pytestadapter import expected_execution_test_output @@ -64,6 +65,10 @@ def test_rootdir_specified(): assert actual_result_dict == expected_const +@pytest.mark.skipif( + sys.platform == "win32", + reason="See https://github.com/microsoft/vscode-python/issues/22965", +) def test_syntax_error_execution(tmp_path): """Test pytest execution on a file that has a syntax error.