From 038feaa95a5d01b5583e94079aeeb07fd41fdf6e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Oct 2026 23:03:28 -1000 Subject: [PATCH] [core] Match the bad candidate by file name so the test passes on Windows --- tests/unit_tests/test_yaml_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_yaml_util.py b/tests/unit_tests/test_yaml_util.py index f0bfebcb8ac..54c42e916a9 100644 --- a/tests/unit_tests/test_yaml_util.py +++ b/tests/unit_tests/test_yaml_util.py @@ -1647,7 +1647,7 @@ def test_discover_user_yaml_files_bad_candidate_still_tracked( r.levelname for r in caplog.records if "Failed to load candidate" in r.message ] assert matching == ["DEBUG"] - assert any("keys/bad.yaml" in e for e in discovered.load_errors) + assert any("bad.yaml" in e for e in discovered.load_errors) def test_discover_user_yaml_files_tolerates_templated_top_level_include(