From c7a62c384ce8000ad4785a3bc338dc2945905174 Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Fri, 11 Aug 2023 11:14:28 -0400 Subject: [PATCH] fix 1.6 tests --- test/misctests.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/misctests.jl b/test/misctests.jl index fadfcd8..ee52378 100644 --- a/test/misctests.jl +++ b/test/misctests.jl @@ -434,9 +434,11 @@ ctx = InvokeCtx(metadata=Any[]) @test overdub(ctx, invoker, 3) === 9 # This is kind of fragile and may break for unrelated reasons - the main thing # we're testing here is that we properly trace through the `invoke` call. -@test ctx.metadata == Any[Core.apply_type, Core.invoke, Core.apply_type, - Val{2}, Core.apply_type, Base.literal_pow, *, - Base.mul_int] broken = VERSION >= v"1.9" +if VERSION < v"1.9" + @test ctx.metadata == Any[Core.apply_type, Core.invoke, Core.apply_type, + Val{2}, Core.apply_type, Base.literal_pow, *, + Base.mul_int] +end println("done (took ", time() - before_time, " seconds)")