diff --git a/test/meta_testing_tools.jl b/test/meta_testing_tools.jl index 0bc5055b..d50e2f12 100644 --- a/test/meta_testing_tools.jl +++ b/test/meta_testing_tools.jl @@ -96,7 +96,10 @@ end @testset "Single Test" begin fails = nonpassing_results(()->@test false) @test length(fails) === 1 - @test fails[1].orig_expr == false + # Julia 1.6 return a `String`, not an `Expr`. + # Always calling `string` on it gives gives consistency regardless of version. + # https://github.com/JuliaLang/julia/pull/37809 + @test string(fails[1].orig_expr) == string(false) end @testset "Single Testset" begin @@ -107,8 +110,12 @@ end end end @test length(fails) === 2 - @test fails[1].orig_expr == :(false==true) - @test fails[2].orig_expr == :(true==false) + + # Julia 1.6 return a `String`, not an `Expr`. + # Always calling `string` on it gives gives consistency regardless of version. + # https://github.com/JuliaLang/julia/pull/37809 + @test string(fails[1].orig_expr) == string(:(false == true)) + @test string(fails[2].orig_expr) == string(:(true == false)) end end