Skip to content

Commit 367dd0e

Browse files
eleanorjboydCopilot
andcommitted
Skip obsolete pytest-black discovery case
pytest-black does not support pytest 8.1 or newer, and pytest-ruff already covers discovery of plugin-generated test items. Skip the obsolete Black-specific parameter instead of maintaining a local replacement for the third-party plugin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c15488a commit 367dd0e

2 files changed

Lines changed: 4 additions & 132 deletions

File tree

python_files/tests/pytestadapter/.data/2496-black-formatter/conftest.py

Lines changed: 0 additions & 131 deletions
This file was deleted.

python_files/tests/pytestadapter/test_discovery.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,13 @@ def test_config_sub_folder():
476476
expected_discovery_test_output.ruff_test_expected_output,
477477
"--ruff",
478478
),
479-
(
479+
pytest.param(
480480
"2496-black-formatter",
481481
expected_discovery_test_output.black_formatter_expected_output,
482482
"--black",
483+
marks=pytest.mark.skip(
484+
reason="pytest-black does not support pytest 8.1 or newer"
485+
),
483486
),
484487
],
485488
)

0 commit comments

Comments
 (0)