Skip to content

Commit

Permalink
fix 1.6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Aug 11, 2023
1 parent 5a45eab commit c7a62c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/misctests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

Expand Down

0 comments on commit c7a62c3

Please sign in to comment.