Skip to content

Commit

Permalink
fix loading tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Feb 11, 2024
1 parent 806488c commit 6b434eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ end
# normalization of paths by include (#26424)
@test begin
exc = try; include("./notarealfile.jl"); "unexpectedly reached!"; catch exc; exc; end
@test exc isa SystemError
exc.prefix
end == "opening file $(repr(joinpath(@__DIR__, "notarealfile.jl")))"
@test exc isa ArgumentError
exc.msg
end == "$(repr(joinpath(@__DIR__, "notarealfile.jl"))): No such file or directory"

old_act_proj = Base.ACTIVE_PROJECT[]
pushfirst!(LOAD_PATH, "@")
Expand Down Expand Up @@ -1529,6 +1529,6 @@ end
end

file = joinpath(depot, "dev", "non-existent.jl")
@test_throws SystemError("opening file $(repr(file))") include(file)
@test_throws ArgumentError("$(repr(file)): No such file or directory") include(file)
end
end

0 comments on commit 6b434eb

Please sign in to comment.