diff --git a/test/helpers.jl b/test/helpers.jl index 45fedeb6b..05122bf49 100644 --- a/test/helpers.jl +++ b/test/helpers.jl @@ -51,7 +51,7 @@ function expecterror(err, cell; strict=true) msg = sprint(showerror, err) # UndefVarError(:x, #undef) - if err isa UndefVarError && !isdefined(err, :scope) && VERSION > v"1.10" + if err isa UndefVarError && !isdefined(err, :scope) && VERSION >= v"1.11" strict = false msg = first(split(msg, '\n'; limit=2)) end