From 048025e9ddc75d43626c27f5591da6418ef3feb4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Aug 2026 20:44:49 -0500 Subject: [PATCH] Form the local-library URL with as_uri so the test passes on Windows --- tests/unit_tests/test_arduino_library.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/test_arduino_library.py b/tests/unit_tests/test_arduino_library.py index 195bd781c0..4a593413e3 100644 --- a/tests/unit_tests/test_arduino_library.py +++ b/tests/unit_tests/test_arduino_library.py @@ -774,7 +774,9 @@ def test_dict_shorthand_dependency_skips_registry_through_real_converter( (local_lib / "library.json").write_text( '{"name": "LocalLib", "version": "1.0.0", "dependencies": {"Wire": "*"}}' ) - _add_library(f"file://{local_lib}", None) + # as_uri() forms a valid file:// URL on every platform (file:///C:/... + # on Windows; a bare f-string would embed backslashes) + _add_library(local_lib.as_uri(), None) # The real converter writes its component cache under the config dir CORE.config_path = tmp_path / "test.yaml" CORE.config_path.write_text("")