Skip to content

Commit

Permalink
Add an invokelatest that may be required in 1.12 (#231)
Browse files Browse the repository at this point in the history
This test currently relies on implicit world age increments at top
level. We're re-evaluating where these go because julia is currently
inconsistent about it in the interpreter, compiler and inference.
To make sure this test keeps working on 1.12, add an explicit
world age increment. See JuliaLang/julia#56509.
  • Loading branch information
Keno authored and fingolfin committed Feb 14, 2025
1 parent 6c8e85e commit 3003c74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ end
# skip tables containing only unipotent character types
startswith(table, "uni") && continue

@test order(g) == sum(number_of_characters(c)*degree(c)^2 for c in g)
# Workaround that may be needed in Julia >= 1.12. Can be removed
# when we manage to remove the need for `eval` when loading tables.
Base.invokelatest() do
@test order(g) == sum(number_of_characters(c) * degree(c)^2 for c in g)
end
end
end

0 comments on commit 3003c74

Please sign in to comment.