Skip to content

Commit a318134

Browse files
authored
Fix corpus tests on Julia 1.10+ (#447)
1 parent 3bf262b commit a318134

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/parse_packages.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ base_tests_path = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "test")
3939
return nothing
4040
end
4141

42-
if endswith(f, "core.jl")
43-
# Loose comparison due to `for f() = 1:3` syntax
44-
return exprs_roughly_equal
42+
if endswith(f, "core.jl")
43+
# The test
44+
# @test Union{Tuple{T}, Tuple{T,Int}} where {T} === widen_diagonal(Union{Tuple{T}, Tuple{T,Int}} where {T})
45+
# depends on a JuliaSyntax bugfix and parses differently (wrong) using
46+
# flisp. This was added in julia#52228 and backported in julia#52045
47+
if v"1.10.0-rc1.39" <= VERSION
48+
return nothing
49+
else
50+
# Loose comparison due to `for f() = 1:3` syntax
51+
return exprs_roughly_equal
52+
end
4553
end
4654

4755
return exprs_equal_no_linenum

0 commit comments

Comments
 (0)