File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
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 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"
656
656
657
657
old_act_proj = Base. ACTIVE_PROJECT[]
658
658
pushfirst! (LOAD_PATH , " @" )
@@ -1542,7 +1542,7 @@ end
1542
1542
end
1543
1543
1544
1544
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)
1546
1546
touch (file)
1547
1547
@test include_dependency (file) === nothing
1548
1548
chmod (file, 0x000 )
@@ -1552,7 +1552,7 @@ end
1552
1552
@test include_dependency (dir) === nothing
1553
1553
dir
1554
1554
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)
1556
1556
end
1557
1557
end
1558
1558
You can’t perform that action at this time.
0 commit comments