diff --git a/src/python/pants/backend/tools/yamllint/BUILD b/src/python/pants/backend/tools/yamllint/BUILD index 72232906dec..d3e0055982a 100644 --- a/src/python/pants/backend/tools/yamllint/BUILD +++ b/src/python/pants/backend/tools/yamllint/BUILD @@ -5,4 +5,11 @@ resource(name="lockfile", source="yamllint.lock") python_sources(dependencies=[":lockfile"]) -python_tests(name="tests") +python_tests( + name="tests", + overrides={ + "rules_integration_test.py": { + "tags": ["platform_specific_behavior"], + } + }, +) diff --git a/src/python/pants/backend/tools/yamllint/rules_integration_test.py b/src/python/pants/backend/tools/yamllint/rules_integration_test.py index afc0f98ca76..b52431ba028 100644 --- a/src/python/pants/backend/tools/yamllint/rules_integration_test.py +++ b/src/python/pants/backend/tools/yamllint/rules_integration_test.py @@ -163,6 +163,7 @@ def test_passing(rule_runner: RuleRunner) -> None: assert_success(rule_runner) +@pytest.mark.platform_specific_behavior def test_failure(rule_runner: RuleRunner) -> None: rule_runner.write_files({"test.yaml": REPEATED_KEY, "not_yaml": NOT_YAML}) assert_failure_with('duplication of key "this"', rule_runner)