Skip to content

Commit

Permalink
skip tests, pytest upstream regression (#22974)
Browse files Browse the repository at this point in the history
Short-term fix to stop CI from failing due to a regression upstream from
pytest. See issue for details:
#22965.
  • Loading branch information
eleanorjboyd authored and karthiknadig committed Feb 26, 2024
1 parent 4fca030 commit 1fbd77b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pythonFiles/tests/pytestadapter/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions pythonFiles/tests/pytestadapter/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Any, Dict, List

import pytest
import sys

from tests.pytestadapter import expected_execution_test_output

Expand Down Expand Up @@ -71,6 +72,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.
Expand Down

0 comments on commit 1fbd77b

Please sign in to comment.