Check the JSON shape explicitly instead of AttributeError control flow

This commit is contained in:
J. Nick Koston
2026-08-22 23:33:26 -05:00
parent 5a356215c4
commit f301f54fcf
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2232,7 +2232,7 @@ def test_copy_src_tree_handles_non_dict_build_info_json(
build_path = tmp_path / "build"
build_path.mkdir()
# Create invalid build_info.json
# Valid JSON that is not an object: no .get, must read as stale
build_info_json_path = build_path / "build_info.json"
build_info_json_path.write_text("[]")