From 54e15205414349a77a2cebb7d09e55720c8c17c3 Mon Sep 17 00:00:00 2001 From: Chengyu Han Date: Wed, 29 Jan 2025 13:31:09 +0800 Subject: [PATCH] test: mark broken syntax tests --- test/syntax.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/syntax.jl b/test/syntax.jl index e95c7d73eed10..c98669f3c0f6a 100644 --- a/test/syntax.jl +++ b/test/syntax.jl @@ -925,8 +925,8 @@ g21054(>:) = >:2 @test g21054(-) == -2 # issue #21168 -@test Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"") -@test Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"") +@test_broken Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"") +@test_broken Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"") # Issue #21225 let abstr = Meta.parse("abstract type X end") @@ -1496,8 +1496,8 @@ end # issue #26739 let exc = try Core.eval(@__MODULE__, :(sin.[1])) catch exc ; exc end - @test exc isa ErrorException - @test startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"") + @test_broken exc isa ErrorException + @test_broken startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"") end # issue #26873