Skip to content

Commit c49e179

Browse files
committed
update tests to work with SystemError again
1 parent e6b60d0 commit c49e179

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/loading.jl

Lines changed: 5 additions & 5 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 ArgumentError
654-
exc.msg
655-
end == "including $(repr(joinpath(@__DIR__, "notarealfile.jl"))): No such file"
653+
@test exc isa SystemError
654+
exc.prefix
655+
end == "including file $(repr(joinpath(@__DIR__, "notarealfile.jl"))): No such file"
656656

657657
old_act_proj = Base.ACTIVE_PROJECT[]
658658
pushfirst!(LOAD_PATH, "@")
@@ -1542,7 +1542,7 @@ end
15421542
end
15431543

15441544
file = joinpath(depot, "dev", "non-existent.jl")
1545-
@test_throws ArgumentError("including $(repr(file)): No such file") include(file)
1545+
@test_throws SystemError("including file $(repr(file)): No such file") include(file)
15461546
touch(file)
15471547
@test include_dependency(file) === nothing
15481548
chmod(file, 0x000)
@@ -1552,7 +1552,7 @@ end
15521552
@test include_dependency(dir) === nothing
15531553
dir
15541554
end
1555-
@test_throws ArgumentError("including $(repr(dir)): No such file or directory") include_dependency(dir)
1555+
@test_throws SystemError("including $(repr(dir)): No such file or directory") include_dependency(dir)
15561556
end
15571557
end
15581558

0 commit comments

Comments
 (0)