File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 650
650
# normalization of paths by include (#26424)
651
651
@test begin
652
652
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 "
656
656
657
657
old_act_proj = Base. ACTIVE_PROJECT[]
658
658
pushfirst! (LOAD_PATH , " @" )
@@ -1529,6 +1529,6 @@ end
1529
1529
end
1530
1530
1531
1531
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)
1533
1533
end
1534
1534
end
You can’t perform that action at this time.
0 commit comments