Skip to content

Commit a85a4a8

Browse files
eleanorjboydanthonykim1
authored andcommitted
skip tests, pytest upstream regression (microsoft#22974)
Short-term fix to stop CI from failing due to a regression upstream from pytest. See issue for details: microsoft#22965.
1 parent 4fca030 commit a85a4a8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pythonFiles/tests/pytestadapter/test_discovery.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
from .helpers import TEST_DATA_PATH, runner, runner_with_cwd, create_symlink
1919

2020

21+
@pytest.mark.skipif(
22+
sys.platform == "win32",
23+
reason="See https://github.com/microsoft/vscode-python/issues/22965",
24+
)
2125
def test_import_error(tmp_path):
2226
"""Test pytest discovery on a file that has a pytest marker but does not import pytest.
2327
@@ -59,6 +63,10 @@ def test_import_error(tmp_path):
5963
assert False
6064

6165

66+
@pytest.mark.skipif(
67+
sys.platform == "win32",
68+
reason="See https://github.com/microsoft/vscode-python/issues/22965",
69+
)
6270
def test_syntax_error(tmp_path):
6371
"""Test pytest discovery on a file that has a syntax error.
6472

pythonFiles/tests/pytestadapter/test_execution.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from typing import Any, Dict, List
77

88
import pytest
9+
import sys
910

1011
from tests.pytestadapter import expected_execution_test_output
1112

@@ -71,6 +72,10 @@ def test_rootdir_specified():
7172
assert actual_result_dict == expected_const
7273

7374

75+
@pytest.mark.skipif(
76+
sys.platform == "win32",
77+
reason="See https://github.com/microsoft/vscode-python/issues/22965",
78+
)
7479
def test_syntax_error_execution(tmp_path):
7580
"""Test pytest execution on a file that has a syntax error.
7681

0 commit comments

Comments
 (0)