Skip to content

Commit

Permalink
work around julia 1.11 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Oct 22, 2024
1 parent db34fd4 commit 4fe043a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ end
@test_throws SchemaVersionDeclarationError("malformed `@version` field expression: f()") @version(ChildV2, begin f() end)
end

@test_throws UndefVarError(:UnknownV1) @version(ChildV1 > UnknownV1, begin x end)
# Workaround https://github.com/JuliaLang/julia/issues/52683
err = VERSION > v"1.11-" ? UndefVarError(:UnknownV1, Main) : UndefVarError(:UnknownV1)
@test_throws err @version(ChildV1 > UnknownV1, begin x end)

undeclared = SchemaVersion("undeclared", 3)

Expand Down

0 comments on commit 4fe043a

Please sign in to comment.