Skip to content

Commit 3003c74

Browse files
Kenofingolfin
authored andcommitted
Add an invokelatest that may be required in 1.12 (#231)
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.
1 parent 6c8e85e commit 3003c74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ end
142142
# skip tables containing only unipotent character types
143143
startswith(table, "uni") && continue
144144

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

0 commit comments

Comments
 (0)