Skip to content

Commit 7df2a69

Browse files
authored
Adjust trimming test to JSON.jl ≥1.0 (#59738)
Adapt to major update of JSON.jl: JuliaIO/JSON.jl#374
1 parent f362f47 commit 7df2a69

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/trimming/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Zstd_jll = "3161d3a3-bdf6-5164-811a-617609db77b4"
88

99
[sources]
1010
Zstd_jll = {path = "Zstd_jll"}
11+
12+
[compat]
13+
JSON = "1"

test/trimming/trimming.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let exe_suffix = splitext(Base.julia_exename())[2]
3535
str = read(joinpath(bindir, "bindinginfo_libsimple.json"), String)
3636

3737
# The log should parse as valid JSON
38-
abi = JSON.Parser.parse(str)
38+
abi = JSON.parse(str)
3939

4040
# `copyto_and_sum` should have been exported
4141
@test any(Bool[func["symbol"] == "copyto_and_sum" for func in abi["functions"]])

0 commit comments

Comments
 (0)