Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
fail-fast: false
matrix:
# We test quite a lot of versions because we do some OS and version specific things unfortunately
julia-version: ["1.6", "1.8", "1.10"] #, "nightly"] # "~1.11.0-0"]
julia-version: ["1.6", "1.8", "1.10", "nightly"] # "~1.11.0-0"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
Expand Down
11 changes: 8 additions & 3 deletions test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ end

function expecterror(err, cell; strict=true)
cell.errored || return false
io = IOBuffer()
showerror(io, err)
msg = String(take!(io))
msg = sprint(showerror, err)

# UndefVarError(:x, #undef)
if err isa UndefVarError && !isdefined(err, :scope) && VERSION > v"1.10"
strict = false
msg = first(split(msg, '\n'; limit=2))
end

if strict
return cell.output.body[:msg] == msg
else
Expand Down