Skip to content

Commit 372b8fc

Browse files
committed
Fix tests in Julia >= 1.12
1 parent 93cd69a commit 372b8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
# Its signature is kwarg_decl(m::Method, kwtype::DataType). The second argument
4141
# should be the type of the kwsorter from the corresponding MethodTable.
4242
@test isa(methods(M.j_1), Base.MethodList)
43-
get_mt(func) = VERSION v"1.13.0-DEV.647" ? Core.GlobalMethods : methods(func).mt
43+
get_mt(func) = VERSION v"1.12" ? Core.methodtable : methods(func).mt
4444
local mt = get_mt(M.j_1)
4545
@test isa(mt, Core.MethodTable)
4646
if Base.fieldindex(Core.MethodTable, :kwsorter, false) > 0
@@ -83,7 +83,7 @@ end
8383
DSE.format(IMPORTS, buf, doc)
8484
str = String(take!(buf))
8585
@test occursin("\n - `Base`\n", str)
86-
if VERSION < v"1.13-DEV"
86+
if VERSION < v"1.12"
8787
@test occursin("\n - `Core`\n", str)
8888
end
8989

0 commit comments

Comments
 (0)