Skip to content

Commit 6b434eb

Browse files
committed
fix loading tests
1 parent 806488c commit 6b434eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/loading.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,9 @@ end
650650
# normalization of paths by include (#26424)
651651
@test begin
652652
exc = try; include("./notarealfile.jl"); "unexpectedly reached!"; catch exc; exc; end
653-
@test exc isa SystemError
654-
exc.prefix
655-
end == "opening file $(repr(joinpath(@__DIR__, "notarealfile.jl")))"
653+
@test exc isa ArgumentError
654+
exc.msg
655+
end == "$(repr(joinpath(@__DIR__, "notarealfile.jl"))): No such file or directory"
656656

657657
old_act_proj = Base.ACTIVE_PROJECT[]
658658
pushfirst!(LOAD_PATH, "@")
@@ -1529,6 +1529,6 @@ end
15291529
end
15301530

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

0 commit comments

Comments
 (0)